Skip to content

Commit da566bf

Browse files
authored
Merge pull request #352 from boutproject/Add-fix-for-common-docker-issue
Add fix for docker permissions error after `rm -rf`ing your Docker compose
2 parents 5f2bb98 + d757158 commit da566bf

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docker/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,13 @@ The `Dockerfile` contains the instructions for building the Docker image layer b
133133

134134
14. **Setting Entrypoint and Default Command (`ENTRYPOINT [ "/entrypoint.sh" ]`, `CMD [ "/bin/bash"]`)**:
135135
* The `ENTRYPOINT` instruction specifies the default executable to run when the container starts. Here, it's the `/entrypoint.sh` script.
136-
* The `CMD` instruction provides default arguments to the `ENTRYPOINT`. If no command is specified when running the container (e.g., `docker run <image>`), it will default to `/bin/bash`, providing an interactive shell within the container.
136+
* The `CMD` instruction provides default arguments to the `ENTRYPOINT`. If no command is specified when running the container (e.g., `docker run <image>`), it will default to `/bin/bash`, providing an interactive shell within the container.
137+
138+
## Help!!! I don't have permission to delete the `hermes-3-docker/work` folder
139+
140+
One somewhat annoying problem with using this docker image is the possibility that you end up with files in the `hermes-3-docker/work` folder that you don't have permission to delete. If you still have the `docker-compose.yaml` and `.env` file available, you can run `docker compose run --rm fix-permissions` and then proceed with deleting the `hermes-3-docker/work` folder. However, if you've already deleted these files, run the following command
141+
```
142+
docker run --rm -v "${PWD}/hermes-3-docker/work:/hermes_project/work" -e "PUID=$(id -u)" -e "PGID=$(id -g)" ghcr.io/boutproject/hermes-3 image fix_permissions
143+
```
144+
to adjust the permissions of `./hermes-3-docker/work`. You should then be able to `rm -rf hermes-3-docker/work`.
145+

0 commit comments

Comments
 (0)