-
Notifications
You must be signed in to change notification settings - Fork 1
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
[BUG] Docker snap fails to run bash container #1
Comments
Try this out. Go to this folder:
The |
thanks bud, I will definitely check that out. the weird things is that file is inside the docker container...so I don't know why it is stopping the docker container from reading a file inside itself...since that is the entrypoint: https://github.com/tianon/docker-bash/blob/a4642024da1b528b2631bfa31d6997f89dbc054a/5.0/Dockerfile#L121 |
From my understanding of what this ENTRYPOINT directive does and when it is observed, I believe this is pre-docker image build (or rather during the build I guess), and ran on the host system. I could be wrong. What says this is the case to me, ENTRYPOINT seems to have two options, exec (their preferred) and shell forms. The shell form has a caveat that states the ENTRYPOINT command will not run as PID 1 on the image, and is then running on the host. This somewhat backs up the idea of AppArmor blocking us, since I don't think it would be present in the Docker image itself nor logged to the host's log facility. Here is the snippet found in the docs: The shell form prevents any CMD or run command line arguments from being used, but has the disadvantage that your ENTRYPOINT will be started as a subcommand of /bin/sh -c, which does not pass signals. This means that the executable will not be the container’s PID 1 - and will not receive Unix signals - so your executable will not receive a SIGTERM from Link to this: https://docs.docker.com/engine/reference/builder/#entrypoint What I would do is change the location of this file since it is on the host system and put in a location that you allow your Docker process to see, and add that location to AppArmor as a directive for Docker's access. I believe it should be in that Good times and build rhymes. I hope that helps brother. |
for some reason when I try to use the snap version of docker and try to execute the bash container it fails to execute the and get the following error message:
doing a quick
![image](https://user-images.githubusercontent.com/10230166/83664769-77199a00-a598-11ea-8f43-d7fcd7302f5f.png)
journalctl -f
this was in the logsThe text was updated successfully, but these errors were encountered: