-
Notifications
You must be signed in to change notification settings - Fork 271
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
Centos repos have version of Docker that cannot run init
as default command
#202
Comments
Hmm, that's pretty strange. I usually work with Ubuntu images, but I just booted up and tested on a vanilla CenOS 7.2 x86_64 image with SELinux enabled and cannot reproduce the error though: Confirm SELinux is on:
After pulling the latest
Running Can't really debug if I can't reproduce. Really surprising it would fail automatically and work manually though. Have you tried:
If that fails, you could also try running rstudio directly without s6 init system (though note this bypasses the configure script which sets things like custom passwords from the env vars:
Anyway, no idea what's going on but it doesn't seem to be due to CentOS / SELinux. |
Running the I think the irreproducibility problem might be caused by using the Docker version from get.docker.com instead of one from the repositories. The extras repository is bundled with CentOS, while in Fedora the Docker package is shipped in the primary repository.
|
Cool, sounds promising. Guess this suggests you might try updating to the latest version of docker from the official docker repo instead of the prepackaged centos one? |
I encountered the same problem on Fedora 24, using docker from the official Fedora repos. I seems that the Red Hat folks have added some modifications if the entrypoint is called I fixed this for me be renaming "/init" to something else. |
init
as default command
Given that the behavior of the Centos-packaged version of Docker is different from the official current release of Docker, I think the recommendation here is simply to upgrade Docker to the current release from the official docker repos (i.e. <get.docker.com>). (note that |
For reference, a workaround that works for me with the redhat docker packages is: add VOLUME ["/run"] in your Dockerfile, or add a '-v /run' to the docker run command, ie docker run -v /run ... . See just-containers/s6-overlay#158 for the related S6 init system issue. |
@simw Thanks, using |
I agree that running I experienced this issue with Fedora 29 Silverblue and the |
I'm also seeing it with I can open an issue on |
I tried to run the latest rocker/rstudio image (
6daa62cd59de
) on Fedora 24 (x86_64) as described in the documentation. However, the server does not start due to some permission problems.Interestingly, when I tried to run the initialization script from the container, everything worked fine and RStudio opened successfully at http://localhost:8787/.
This issue also replicates on CentOS 7.2 (x86_64). SELinux is enabled in both cases.
The text was updated successfully, but these errors were encountered: