When using volumes (`-v` flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user ID and group ID.
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
In this instance `UID=1000` and `GID=1000`, to find yours use id user as below:
- Shell access whilst the container is running: `docker exec -it komga /bin/bash`
- To monitor the logs of the container in realtime: `docker logs -f komga`
## Updating
Below are the instructions for updating containers:
### Via Docker Run/Create
- Update the image: `docker pull gotson/komga`
- Stop the running container: `docker stop komga`
- Delete the container: `docker rm komga`
- Recreate a new container with the same docker create parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
- Start the new container: `docker start komga`
- You can also remove the old dangling images: `docker image prune`
### Via Docker Compose
- Update all images: `docker-compose pull`
- or update a single image: `docker-compose pull komga`
- Let compose update all containers as necessary: `docker-compose up -d`
- or update a single container: `docker-compose up -d komga`
- You can also remove the old dangling images: `docker image prune`