-
Notifications
You must be signed in to change notification settings - Fork 598
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
Ubunut/Mint - Cannot start service jenkins - "rpc error: code = 2" #24
Comments
@marcelbirkner I didn't find anything related at the tracker so I created this issue. Please if there's any error or misconception tell me. If it's right the easiest way to help Ubuntu/Mint users I can think right know it's just adding some sort of disclaimer at README.md But you can also add a fix script. This cold be used in automating the fix sed -i 's/\- \/usr\/local\/bin\/docker:\(\/usr\/bin\/docker\)/- \1:\1/' docker-compose.yml Example test: $ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
$ docker-compose up
Starting dockercitoolstack_sonardb_1
Starting dockercitoolstack_gitlab_1
Starting dockercitoolstack_seleniumhub_1
Starting dockercitoolstack_nexus_1
Starting dockercitoolstack_nodeff_1
Starting dockercitoolstack_nodechrome_1
Starting dockercitoolstack_sonar_1
Recreating e793e66933eb_e793e66933eb_e793e66933eb_dockercitoolstack_jenkins_1
ERROR: for jenkins Cannot start service jenkins: rpc error: code = 2 desc = "oci runtime error: could not synchronise with container process: not a directory"
ERROR: Encountered errors while bringing up the project.
$ sed -i 's/\- \/usr\/local\/bin\/docker:\(\/usr\/bin\/docker\)/- \1:\1/' docker-compose.yml
$ docker-compose up
Removing dockercitoolstack_jenkins_1
dockercitoolstack_sonardb_1 is up-to-date
dockercitoolstack_gitlab_1 is up-to-date
dockercitoolstack_seleniumhub_1 is up-to-date
dockercitoolstack_nexus_1 is up-to-date
dockercitoolstack_sonar_1 is up-to-date
dockercitoolstack_nodeff_1 is up-to-date
Starting dockercitoolstack_nodechrome_1
Starting e793e66933eb_e793e66933eb_e793e66933eb_e793e66933eb_dockercitoolstack_jenkins_1
Attaching to dockercitoolstack_sonardb_1, dockercitoolstack_gitlab_1, dockercitoolstack_seleniumhub_1, dockercitoolstack_nexus_1, dockercitoolstack_sonar_1, dockercitoolstack_nodeff_1, e793e66933eb_e793e66933eb_e793e66933eb_e793e66933eb_dockercitoolstack_jenkins_1, dockercitoolstack_nodechrome_1 Example fix script docker-compose.yml.Ubuntu_fix.sh #!/bin/bash
sed -i 's/\- \/usr\/local\/bin\/docker:\(\/usr\/bin\/docker\)/- \1:\1/' docker-compose.yml |
@iamsortiz Got the same error on Ubuntu 14.04, this solution fixed my problem. Thanks. |
Hello, we got this same error with a little different wording in a debian 8.0 box. Changing it as suggested fixed the problem. Thanks a lot! |
Problem:
On: docker-compose up
Expected
Running stack
But got
On system:
With repo at commit:
Cause:
'/usr/local/bin/docker' is a directory on the described system, not the docker binary
$ ls -la /usr/local/bin/docker total 8 drwxr-xr-x 2 root root 4096 Aug 2 09:27 . drwxr-xr-x 3 root root 4096 Aug 2 09:27 .. $ file /usr/local/bin/docker /usr/local/bin/docker: directory
'/usr/bin/docker' is the docker binary
$ file /usr/bin/docker /usr/bin/docker: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=774135019a247820eae89976d765ed625aeb940b, not stripped
Solution
On Ubuntu 16.04 (or derived, like Mint 18), subsitute '/usr/local/bin/docker' for '/usr/bin/docker' at docker-compose.yml line 23
Example run
The text was updated successfully, but these errors were encountered: