-
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
Issue with Native docker on Mac #26
Comments
Hello, How does you docker-compose.yml look like? Are you using the original paths or have you changed them? Edu. |
Just got the latest pull and didn't change anything in the yml or any other files. Ran under "sudo" mode thats all. Here is my command: sudo docker-compose up -d |
Have you created the folders /opt/jenkins, /opt/postgres and /opt/gitlab ? |
And, by the way, what beta build of version 1.12 are you using? |
Yes I did create (/opt/jenkins, /opt/postgres) because of previous issues. But I don't see /opt/gitlab in my Mac host? I am using the stable version and not the beta. Here is my version Client: Server: |
Yes I did. Have all except gitlab directory. I think the root cause is somewhere else. When I look up, I don't see a directory /var/lib/docker on my host. Anyway I will create the gitlab directory/share and see. |
Interesting !!! When I created the subfolder gitlab under opt and tried to share in docker, got a error message saying "/opt/gitlab" is reserved for docker engine... |
You should change the permission for those folders to your user, and by the way I think you should not use sudo. |
Anyway got the same error, when I re-ran the same command "docker-compose up -d" no sudo. |
What did you do to correct it? Though I have played with docker using virtual box before ( year back), never played on plain docker. Do u remember anything? How can I restart fresh install of the CI stack? |
I just created folders within my own user folder: /Users/user/jenkins, etc and added /Users as shared filesystem to docker. But finally I decided to make my own stack. Also because it seems that host mounted folders are not so portable according to docker documentation. If you want, have a look at it... |
Otherwise, try the latest beta: Version 1.12.1-beta26 (build: 12048) I think they are playing a lot with this mac osx version right now. |
Oh! I remember now how I fixed it. I just followed the advice given about subsituting '/usr/local/bin/docker' for '/usr/bin/docker'
because if you notice, the error is the same but it's for some reason shown in a different way. |
Now I get a different error. Mount denied: /usr/bin/jenkin/ Can I mount to /Users? |
/usr/bin/jenkin ? I think it is a typo. Could you please copy and paste your docker-compose.yml? |
Here is my modified docker-compose.yml. I am getting this error: I am not able to "file share" /usr folder in docker preference because of my OS version ( i guess).. |
there is a typo: you should use:
and not:
it does not make any sense. |
My fault. When specified correctly, I didn't any error. Finally !!. Lets see if all the URLs are working Thanks for all your help, |
I was able to get all the URLs working. Thanks a lot and I can play with it more now. One last thing. How can I shutdown all the containers and bring it back? |
well, you can issue the following command:
to restart just run again
volumes are persistent. |
Hello, Please close this issue. I think you can since you opened it. Thanks. |
Had the same issue on my Mac - and below is how i resolved it. After hours of googling and almost to the point of wanting to throw my Mac through the window the following worked for me . I created a new folder ( mkdir name of folder and then open your Docker -> Preferences -> File Sharing and add the newly created directory - locate in the pc and add it in. After that the Docker will restart and then viola!!! PS - the error message always have the folder name it requires to proceed with the mount. Notice the following line - \r\nThe path /certs\r\nis not certs in this case is the folder thats being looked for - in your terminal you can do the following ( mkdir certs - certs being any folder name being required ) |
please can you explain more in detail!!!! |
I am using native docker (1.12) on Mac. Had some volume mount issue in Sonar and opt directories. Resolved them thru "Preferences -> File Sharing". But now I am getting the following error
$ sudo docker-compose up -d
Password:
Removing dockercitoolstack_jenkins_1
dockercitoolstack_gitlab_1 is up-to-date
Starting dockercitoolstack_seleniumhub_1
Starting dockercitoolstack_sonardb_1
Starting dockercitoolstack_nexus_1
Starting dockercitoolstack_nodechrome_1
Starting dockercitoolstack_nodeff_1
Starting dockercitoolstack_sonar_1
Recreating e6bbf4cc74e7_e6bbf4cc74e7_dockercitoolstack_jenkins_1
ERROR: for jenkins Cannot start service jenkins: oci runtime error: rootfs_linux.go:53: mounting "/var/lib/docker/aufs/mnt/ee94f1a509f954c149105fef34ef5218cf27dea3ce16a3a9bdeee037b7a84f5e/usr/bin/docker" to rootfs "/var/lib/docker/aufs/mnt/ee94f1a509f954c149105fef34ef5218cf27dea3ce16a3a9bdeee037b7a84f5e" caused "not a directory"
The text was updated successfully, but these errors were encountered: