Docker
On this page, you can find instructions on how to install Kapowarr using Docker and how to update a Docker installation.
Installation¶
Install Docker¶
The first step is to install Docker, if you don't have it installed already. The official Docker documentation hub offers great instructions on how to install docker CLI and Docker Desktop. Take notice of whether you installed the 'Docker CLI' (the Docker documentation also calls this 'Docker CE') or 'Docker Desktop', for future instructions.
Quick introduction to Docker
Docker allows you to create little virtual computers, called 'containers'. You can run an application inside these containers. This is useful because you decide how much resources these containers can use, and what access these applications get to "the outside". It makes it safer (e.g. the application only has access to folders on the computer that you explicitly give it access to), and makes installation easier (the developer makes sure that inside the container everything is setup properly, not you).
Allowing folders and network connections through the container is done using 'mapping'. For example, you can map the folder D:\Comics on the host to the folder /comics inside the container. Then everything inside the host folder (D:\Comics) is visible to the application via the mapped container folder (/comics). Mapping network ports works in a similar manner.
When you turn off a container, all file changes inside the container (e.g. folders/files added) are lost. This is so that the environment inside the container when starting up is always the same. So in order to save a file/folder permanently, it has to be stored on the host and then mapped to somewhere inside the container.
Create place for the database¶
Kapowarr needs a permanent place to put the database file. This can be a Docker volume or a folder on the host machine.
Following the Linux standards, we suggest the folder /opt/Kapowarr/db. This is not mandatory however. You are allowed to create a folder anywhere you like.
Create the desired folder using the UI (if your distro offers this) or with the following shell command (replace /path/to/directory with desired path):
The folder needs to offer read, write and execution permissions to the user that the container will run as. You can change the user that the container runs as using the PUID (user) and PGID (group) environment variables when launching the container later. The folder also needs to either be owned by that user, be owned by a group that the user is a part of or have sufficient permissions so that any user can use the folder.
Following MacOS standards, we suggest the folder /Applications/Kapowarr/db. This is not mandatory however. You are allowed to create a folder anywhere you like.
Create the desired folder using the UI or with the following shell command (replace /path/to/directory with desired path):
The folder needs to offer read, write and execution permissions to the user that the container will run as. You can change the user that the container runs as using the PUID and PGID (for the group) environment variables when launching the container later. The folder also needs to either be owned by that user, be owned by a group that the user is a part of or have sufficient permissions so that any user can use the folder.
There is no defined standard for Windows on where to put such a folder. We suggest a path like C:\apps\Kapowarr\db or D:\Kapowarr\db. This is not mandatory however. You are allowed to create a folder anywhere you like.
Create the desired folder either using the Windows Explorer, or using the following Powershell command:
Create a root folder¶
You need at least one folder that all media files can be stored in, called a root folder. If you don't already have a folder with comics, then create one. The folder is allowed to be anywhere you like. You can create it using the same instructions as for creating a folder for the database file.
Create a download folder¶
Kapowarr needs a download folder. If you don't already have a folder that software can download to, then create one. The folder is allowed to be anywhere you like. You can create it using the same instructions as for creating a folder for the database file.
The database folder, root folder(s) and download folder can't intersect (e.g.: the download folder can't be inside the root folder).
Launch container¶
Now we can launch the container.
The command to get the Docker container running can be found below. But before you copy, paste and run it, read the notes below!
A few notes about this command:
- If you're using a folder on the host machine instead of a docker volume to store the database file, replace
kapowarr-dbwith the path to the host folder. It's mapped to/app/dbinside the container.
Examples
-v "/opt/Kapowarr/db:/app/db"-v "C:\apps\Kapowarr\db:/app/db"
- Replace
/path/to/download_folderwith the path to the download folder on the host. It's mapped to/app/temp_downloadsinside the container.
Examples
-v "/home/my-user/comic-downloads:/app/temp_downloads"-v "D:\Comics\Downloads:/app/temp_downloads"
- Replace
/path/to/root_folderwith the path to the root folder on the host. It's mapped to/comicsinside the container. So later, when Kapowarr is running and you need to add a root folder, the mapped folder is what you'll add (e.g./comics).
Examples
-v "/home/my-user/comics:/comics"-v "D:\Comics\Library:/comics"
- You can map multiple root folders by repeating
-v "/path/to/root_folder:/comics"(or-v "DRIVE:\with\root_folder:/comics"for Windows) in the command, but then supplying different values for/path/to/root_folderand/comics.
Examples
-v "/home/my-user/comics-2:/comics-2" \-v "E:\Comics:/comics-2"
- If you want to run Kapowarr on a different port, you can do that by replacing the left
5656with the desired port.
Examples
-p 8009:5656to be available on8009-p 443:5656to be available on443-p 5656:5656to be available on5656
-
You can change the user and group that the application inside the container runs as using the PUID (user) and PGID (group) environment variables.
-
Set the
TZenvironment variable to the timezone database name of your timezone (value ofTZ identifieron webpage).
The contents of the docker-compose.yml file are below. The source file can also be found on GitHub. But before you copy, paste and run it, read the notes below!
services:
kapowarr:
container_name: kapowarr
image: mrcas/kapowarr:latest
environment:
- PUID=0
- PGID=0
- TZ=Etc/UTC
volumes:
- "kapowarr-db:/app/db"
- "/path/to/download_folder:/app/temp_downloads"
- "/path/to/comics:/comics"
ports:
- 5656:5656
volumes:
kapowarr-db:
Then run the following command to start the container. Run this command from within the directory where the docker-compose.yml file is located.
A few notes about the docker-compose.yml file:
- If you're using a folder on the host machine instead of a docker volume to store the database file, replace
kapowarr-dbwith the path to the host folder. It's mapped to/app/dbinside the container.
Examples
- "/opt/Kapowarr/db:/app/db"- "C:\apps\Kapowarr\db:/app/db"
- Replace
/path/to/download_folderwith the path to the download folder on the host. It's mapped to/app/temp_downloadsinside the container.
Examples
- "/home/my-user/comic-downloads:/app/temp_downloads"- "D:\Comics\Downloads:/app/temp_downloads"
- Replace
/path/to/root_folderwith the path to the root folder on the host. It's mapped to/comicsinside the container. So later, when Kapowarr is running and you need to add a root folder, the mapped folder is what you'll add (e.g./comics).
Examples
- "/home/my-user/comics:/comics"- "D:\Comics\Library:/comics"
- You can map multiple root folders by repeating
- "/path/to/root_folder:/comics"in the command, but then supplying different values for/path/to/root_folderand/comics.
Examples
- "/home/my-user/comics-2:/comics-2"- "E:\Comics:/comics-2"
- If you want to run Kapowarr on a different port, you can do that by replacing the left
5656with the desired port.
Examples
- 8009:5656to be available on8009- 443:5656to be available on443- 5656:5656to be available on5656
-
You can change the user and group that the application inside the container runs as using the PUID (user) and PGID (group) environment variables.
-
Set the
TZenvironment variable to the timezone database name of your timezone (value ofTZ identifieron webpage).
-
Click the search bar at the top and search for
mrcas/kapowarr. -
Click
Runon the entry sayingmrcas/kapowarr. -
Open
Images, and on the right, underActionsclick the play/run button formrcas/kapowarr. -
Expand the 'Optional settings'.
-
For the
Container name, set the value tokapowarr. -
For the
Host port, set the value to5656. Set it to a different value if you want to run Kapowarr on a different port. -
For the
Host path, set the value tokapowarr-dbif you are using a Docker volume for the database. Otherwise, set it to the path to the folder on the host. Set the accompanyingContainer pathto/app/db. -
Add another volume mapping using the plus button on the right. Enter the path to the download folder on the host as the value of
Host pathand set the accompanyingContainer pathto/app/temp_downloads. -
Add another volume mapping using the plus button on the right. Enter the path to the root folder on the host as the value of
Host pathand set the accompanyingContainer pathto/comics. Later, when Kapowarr is running and you need to add a root folder, the mapped folder is what you'll add (e.g./comics). -
If you have multiple root folders, repeat step 9, but with a different value for
Host pathandContainer path. -
Under
Environment Variables, set theVariablefield toTZand theValuefield to the timezone database name of your timezone (value ofTZ identifieron webpage). -
You can change the user and group that the application inside the container runs as using the PUID (user) and PGID (group) environment variables. If so, add another environment variable using the plus button on the right. Set the
Variablefield toPUIDand theValuefield to the ID of the desired user. Add yet another environment variable using the plus button on the right. Set theVariablefield toPGIDand theValuefield to the ID of the desired group.
Example¶
Below you can find an example of launching the container.
services:
kapowarr:
container_name: kapowarr
image: mrcas/kapowarr:latest
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Amsterdam
volumes:
- "kapowarr-db:/app/db"
- "/home/cas/media/Downloads:/app/temp_downloads"
- "/home/cas/media/Comics:/comics"
- "/home/cas/other_media/Comics-2:/comics-2"
ports:
- 5656:5656
volumes:
kapowarr-db:

- We use a Docker volume as the place to store the database file.
- We set
/home/cas/media/Downloadsas the download folder. - We map the folder
/home/cas/media/Comicsto/comics. - We map the folder
/home/cas/other_media/Comics-2to/comics-2. - We run the container as user 1000 and group 1000.
- We set the timezone to
Europe/Amsterdam.
In Kapowarr we'd then add /comics and /comics-2 as root folders.
Check Setup After Installation¶
Now that the container is up and running, you can access it at http://localhost:5656. Check out the Setup After Installation page for instructions on how to configure Kapowarr so that it works properly.
Updating¶
Below you can find instructions on how to update an install. In order for the database to properly migrate, upgrade minor version by minor version (i.e. v1.0.0, v1.1.0, v1.2.0, etc.).
If needed, run these commands with sudo. It is assumed that the name of the container is kapowarr (which is set using the --name option in the command).
docker container stop kapowarrdocker container rm kapowarrdocker image rm mrcas/kapowarr:latest- Repeat the steps of launching the container.
If needed, run these commands with sudo. You need to be in the same directory as the docker-compose.yml file when running these commands.
docker-compose downdocker-compose pulldocker-compose up -ddocker image prune -f
- Open
Containersand locate thekapowarrcontainer in the list. - Click the stop button on the right, then the delete button.
- Open
Imagesand locate themrcas/kapowarrimage in the list. - Click the delete button on the right.
- Repeat the steps of launching the container.