Skip to content
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

Not able to run Che as a Docker Container on OSX #1976

Closed
skabashnyuk opened this issue Jul 28, 2016 · 7 comments
Closed

Not able to run Che as a Docker Container on OSX #1976

skabashnyuk opened this issue Jul 28, 2016 · 7 comments
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Milestone

Comments

@skabashnyuk
Copy link
Contributor

skabashnyuk commented Jul 28, 2016

[Short description of problem here]

Reproduction Steps:

  1. Set up Docker for OSX beta 1.12.0-rc4,
  2. Set up environment as described here https://eclipse-che.readme.io/docs/usage-docker-for-mac
  3. Run che as described here https://eclipse-che.readme.io/docs/usage-docker-for-mac

Expected behavior:
Che is running

Observed behavior:

11:13:31]sj:~#: docker run --name=che \
>     -v /home/user/che/lib:/home/user/che/lib-copy \
>     -v /home/user/che/workspaces:/home/user/che/workspaces \
>     -v /home/user/che/storage:/home/user/che/storage \
>     -v /var/run/docker.sock:/var/run/docker.sock \
>     -p 8080:8080 \
>     codenvy/che --remote:$DOCKER_VM_IP
Unable to find image 'codenvy/che:latest' locally
latest: Pulling from codenvy/che
e110a4a17941: Already exists
a3ed95caeb02: Pull complete
0e30e6967f5d: Pull complete
bfa497568536: Pull complete
Digest: sha256:b300245d808f8e788d90658679159f0f1fccd90c9e50f8a39a9a9e6db1b9fb56
Status: Downloaded newer image for codenvy/che:latest
docker: Error response from daemon: Mounts denied:
The paths /home/user/che/lib and /home/user/che/workspaces and /home/user/che/storage
are not shared from OS X and do not belong to the system.
You can configure shared paths from Docker -> Preferences...

Che version: che:latest
OS and version: OSX
Docker version: 1.12.0-rc4,
Che install: Docker container

@ghost
Copy link

ghost commented Jul 28, 2016

@l0rd can you comment please?

@l0rd
Copy link
Contributor

l0rd commented Jul 28, 2016

@skabashnyuk @eivantsov Running it with the new launcher should work. Is it an option here?

@skabashnyuk
Copy link
Contributor Author

[13:05:35]sj:eclipse-che-4.6.0-SNAPSHOT[master]#: docker run -v /var/run/docker.sock:/var/run/docker.sock codenvy/che-launcher start
Unable to find image 'codenvy/che-launcher:latest' locally
latest: Pulling from codenvy/che-launcher
4fe15f8d0ae6: Pull complete
4d8efc227322: Pull complete
5f70bf18a086: Pull complete
6fb31488f897: Pull complete
5b30f66f120f: Pull complete
4c092e74c599: Pull complete
66227230d784: Pull complete
Digest: sha256:ab282d4f1239610fd2a7f80ac9cb6e7e6edd2d97dabef64608a4083c939de5ad
Status: Downloaded newer image for codenvy/che-launcher:latest
INFO: ECLIPSE CHE: PULLING IMAGE codenvy/che-server:codenvy/che-launcher

time="2016-07-28T10:07:49Z" level=fatal msg="Invalid repository name (che-server:codenvy/che-launcher), only [a-z0-9-_.] are allowed"

@l0rd
Copy link
Contributor

l0rd commented Jul 28, 2016

Please use codenvy/che-launcher:nightly

@l0rd
Copy link
Contributor

l0rd commented Jul 28, 2016

If you need latest:

You can configure shared paths from Docker -> Preferences...

This behaviour has been introduced in the latest release candidate of Docker for Mac beta. The client verify that you are mounting in the container a folder that is actually mounted in the VM.

@skabashnyuk
Copy link
Contributor Author

Looks like it's working. But huge wait with not output on start looks strange

@TylerJewell
Copy link

You need to add -t to the run command. We updated the docs yesterday with this requirement.

@riuvshin riuvshin added this to the 4.6.0 milestone Jul 28, 2016
@bmicklea bmicklea added the kind/bug Outline of a bug - must adhere to the bug report template. label Jul 28, 2016
@bmicklea bmicklea mentioned this issue Jul 28, 2016
64 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

No branches or pull requests

5 participants