-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Docker image not starting on Fedora #4020
Comments
I just did a test on Digital Ocean and everything worked as expected.
This ran and got past the particular errors that you are witnessing. We are going to need the community to debug this as we cannot reproduce the issue. To test and try to debug what is going on:
Is it possible that the |
@ioadler is SElinux enabled in your machine? Can you try it this way?
If it does not help, try changing permissions for /var/run/docker.sock - Another test to run is:
When in a running container, run By the way, your user should be able to run docker commands without sudo. Have you added it to do docker group? |
Thank you very much for your replies. The problem (difference) was that I used the Fedora Docker installation. Now I have the following problem after starting Che with: ... Running: INFO: (che cli): nightly - using docker 1.13.0 / native nightly: Pulling from eclipse/che INFO: What's the problem now? (I found some issues that sounded similar from June, but their description didn't help.) |
I think 172.17.0.1 is the IP address of docker0 and not the IP address of the node itself. What does "info" and "info --bundle" generate for you? If the auto-detected IP address is not the right one, provide the proper one with |
@ioadler can you ru8n |
I tried it with and without -e CHE_HOST: Without:
With:
Starting results in the same problem. Result of ifconfig:
|
@ioadler - in your without scenario, you still had it in your
Should we change this? And instead have:
|
Definitely, |
@ioadler could you provide me result of command |
@ioadler @TylerJewell Che should/can run correctly with the Fedora version of Docker. Just try: sudo docker run -p 8080:8080 \
--name che \
-v /var/run/docker.sock:/var/run/docker.sock \
-v <LOCAL_PATH>:/data:Z \
--security-opt label:disable \
-e CHE_DOCKER_SERVER__EVALUATION__STRATEGY=docker-local \
eclipse/che-server:nightly There are 3 things that are different with respect to other distributions:
IMHO disabling SELinux system wide or using the version packaged by Docker Inc. are not good ideas (c.f. 1 and 2). |
I changed che.env. Same result. INFO: (che cli): nightly - using docker 1.13.0 / native The output is: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 Thanks - going back to square one ;-) |
@ioadler how can I get exactly the same Fedora as you have. We all tried hard to reproduce but Fedora images on Digital Ocean and AWS were merciful - Che started as expected. |
@eivantsov - that warning message indicates that he has a @ioadler - fortunately for us, I added some things to fix this in the 5.3.0 release which just got made today :). In all the versions that you were running, the discovered IP address of Can you wipe out your Docker images and then run with:
|
I took the image from https://getfedora.org/de_CH/server/download/. I started as proposed. Result:
|
Check the Che.env file for network configuration parameters. |
@ioadler can you make sure containers can communicate in your VM?
Can curl grab content that nginx serves on port 80 in the container, that port being exposed an published to 32791? If you can, then I am puzzled. If you cannot, we should solve this problem first. |
@eivantsov - I can see the starting page. Curl shows the following result:
Curl from the command line of 192.168.0.209 works correctly. |
@ioadler so, this is a local problem with Docker containers being unable to communicate with one another/with host. |
…4020 Change-Id: I6b65eba02eaab76260d33ffb323fe7413d5ee162 Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
…4020 Change-Id: I6b65eba02eaab76260d33ffb323fe7413d5ee162 Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
@ioadler have you been able to get past this problem? Playing with iptables is probably a good idea here. |
@ioadler can you provide any update on this issue please? |
Closing due to inactivity. Feel free to reopen once you have more info to share. |
I had the same issue on Fedora, after opening the firewall for the range of ports 1025-65535 TCP and UDP on the 'docker0' connection everything worked as expected. |
…clipse-che#4020 Change-Id: I6b65eba02eaab76260d33ffb323fe7413d5ee162 Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
When I start Che, I get the following message:
INFO: Welcome to Eclipse Che!
INFO:
INFO: You are missing a mandatory parameter:
INFO: 1. Mount 'docker.sock' for accessing Docker with unix sockets.
INFO: 2. Or, set DOCKER_HOST to Docker's daemon location (unix or tcp).
INFO:
INFO: Mount Syntax:
INFO: Start with 'docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock' ...
INFO:
INFO: DOCKER_HOST Syntax:
INFO: Start with 'docker run -it --rm -e DOCKER_HOST= ...'
Reproduction Steps:
OS and version:
Diagnostics:
INFO: Welcome to Eclipse Che!
INFO:
INFO: You are missing a mandatory parameter:
INFO: 1. Mount 'docker.sock' for accessing Docker with unix sockets.
INFO: 2. Or, set DOCKER_HOST to Docker's daemon location (unix or tcp).
INFO:
INFO: Mount Syntax:
INFO: Start with 'docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock' ...
INFO:
INFO: DOCKER_HOST Syntax:
INFO: Start with 'docker run -it --rm -e DOCKER_HOST= ...'
The text was updated successfully, but these errors were encountered: