Specify user for containers and upgrade to v4.0.0 #10
Reference in New Issue
Block a user
No description provided.
Delete Branch "specify-user"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
While working on deploying this recipe to the autonomic test instance, I started seeing this error when attempting to connect to containers via bash, or when running the healthcheck (which caused deployment to fail):
invalid USER value 1001:127:-1000I looked into it, and this strange string was the default docker user set for these containers. I was able to avoid the error by connecting to the containers via
docker exec --user root -it containerid /bin/sh. Then I went and added a specific user to the docker compose specs for the container, basically copying from https://github.com/laurentS/lasuite-docs/blob/main/docker-compose.ymlThis fixed the issue, and is included in this PR. Although I never figured out why the error randomly started appearing all of a sudden. I have no explanation (maybe a docker upgrade? although I only saw it on the test instance and not the original deployment).
Anyway, it is working now (🌿) so leaving the mystery for now...
I also updated the images to their latest version, 4.0.0, while trying to debug this... to see if that would fix the issue on its own (it did not), but good to upgrade anyway.
this pr also updates the image versions to 4.0.0
@ -92,2 +92,3 @@- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"- "coop-cloud.${STACK_NAME}.version=0.2.1+v3.4.2"- "coop-cloud.${STACK_NAME}.version=0.2.2+v4.0.0"user: "${DOCKER_USER:-1000}"not entirely sure why I all of a sudden needed to add these to get this to work... which I don't love
Specify user for containersto Specify user for containers and upgrade to v4.0.0tested & working. merging