docker-gitlab icon indicating copy to clipboard operation
docker-gitlab copied to clipboard

How can I enter gitlab container bash?

Open fye opened this issue 12 years ago • 4 comments

I want to enter the container bash to edit email config.

fye avatar Sep 11 '14 05:09 fye

Please refer https://github.com/sameersbn/docker-gitlab#shell-access

sameersbn avatar Sep 11 '14 05:09 sameersbn

As in the shell-access follows, error makes in the command.

[root@YEFEI-CENTOS7 yefei]# docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter Installing nsenter to /target cp: cannot create regular file '/target/nsenter': Permission denied Installing docker-enter to /target cp: cannot create regular file '/target/docker-enter': Permission denied

fye avatar Sep 11 '14 08:09 fye

@fye that is selinux playing spoilsport. However, centos 7 already has nsenter installed by default so you really dont need to install nsenter using the jpetazzo/nsenter image. Just install the docker-enter helper script at /usr/local/bin.

cd /usr/local/bin
sudo wget https://raw.githubusercontent.com/jpetazzo/nsenter/master/docker-enter
sudo chmod +x docker-enter

And you'll be ready to go..

sameersbn avatar Sep 11 '14 08:09 sameersbn

3xs! Done!

fye avatar Sep 15 '14 06:09 fye