Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore gosu suid bit when supervisor container stops #387

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kaluzki
Copy link
Contributor

@kaluzki kaluzki commented Dec 19, 2020

closes:


fixes:


##
# interactive 'entrypoint.d/supervisord.sh' -> strg+c
##

$ docker run --name bug226 -ti -u 1000 webdevops/base:alpine
-> Executing /opt/docker/provision/entrypoint.d/05-gosu.sh
...
^C
Container stopped, performing teardown...
-> Executing /opt/docker/provision/entrypoint.d/teardown/05-gosu.sh

$ docker start bug226
bug226
$ docker logs bug226
...
INFO supervisord started
...


$ docker exec -ti bug226 whoami
whoami: unknown uid 1000

$ docker stop bug226 
$ docker rm bug226



##
# daemon 'entrypoint.d/supervisord.sh'
##

$ docker run --name bug226 -d --user 1000 webdevops/base:alpine
$ docker logs bug226
-> Executing /opt/docker/provision/entrypoint.d/05-gosu.sh
...
INFO supervisord started
...

$ docker exec -ti bug226 whoami
whoami: unknown uid 1000

$ docker stop bug226
$ docker logs bug226



##
# interactive 'entrypoint.d/default.sh' bash -> strg+d
##

$ docker run --rm -ti webdevops/base:alpine bash
bash-4.4
# exit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant