You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* I added support for Docker Rootless.
This has been possible by adding the possibility to bind the docker.sock to the user's current $XDG_RUNTIME_DIR, which is found in the user's .bashrc file, that he added after installing docker rootless, by following the instructions from the official documentation (https://docs.docker.com/engine/security/rootless/) to run the Docker Daemon as a non-root user.
To achieve this, I made the following changes:
1) I added the DOCKER_HOST_ROOTLESS_PATH= variable inside the .env.sample file.
2) I updated in the two required lines of the docker-compose.yml file, the following: ${DOCKER_HOST_ROOTLESS_PATH:-/var/run/docker.sock} , instead of /var/run/docker.sock:/tmp/docker.sock:ro, so that this fixes the "Error: you need to share your Docker host socket with a volume at /var/run/docker.sock. Typically you should run your container with: '-v /var/run/docker.sock:/var/run/docker.sock:ro'" error when using docker rootless.
3) I attempted to update the MD5 of both the .env.sample & docker-compose.yml file [PLEASE CHECK]
4) I updated the usage text in the usage-fresh-start.sh file, so that the user can notice this optional flag: either "-dr" or "--docker-rootless"
5) I updated the update-env-new-site-variables.sh to update the .env DOCKER_HOST_ROOTLESS_PATH to set the user's current $XDG_RUNTIME_DIR, in case the "-dr" flag has been specified. Otherwise, this is left blank and no further action is done.
6) I updated the fresh-start.sh file to take into account the "-dr" flag.
Shouldn't the "-dr" flag be specified, the programme should continue normally.
* Fixed an important typo in docker-compose.yml
* Updated the docker-compose.yml file md5 sum
Co-authored-by: Evert Ramos <[email protected]>
0 commit comments