che icon indicating copy to clipboard operation
che copied to clipboard

Hello All,

Open ShivaniBali opened this issue 8 years ago • 6 comments

I am facing issue on running eclipse Che via docker

Reproduction Steps

OS and version: MAC 10 +

Diagnostics:

ShivaniBali avatar Jan 20 '18 21:01 ShivaniBali

@ShivaniBali please take edit your issue to add details on what exact issue do you face otherwise it will be closed.

ghost avatar Jan 22 '18 06:01 ghost

When I use the command : docker run eclipse/che start on my terminal to open eclipse che via docker, it throws me below error.

Shivanis-MBP:~ shivanibali$ docker run eclipse/che start 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 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= ...' INFO: INFO: Possible root causes: INFO: 1. Your admin has not granted permissions to /var/run/docker.sock. INFO: 2. You passed '--user uid:gid' with bad values. INFO: 3. Your firewall is blocking TCP ports for accessing Docker daemon.

Please let me know how to fix this issue. Thanks!

ShivaniBali avatar Jan 22 '18 17:01 ShivaniBali

I got the below response when I use : eclipse/che:nightly version:

INFO: (che start): Starting containers... INFO: (che start): Services booting... INFO: (che start): Server logs at "docker logs -f che" INFO: (che start): Booted and reachable INFO: (che start): Ver: nightly INFO: (che start): Use: http://localhost:8080 INFO: (che start): API: http://localhost:8080/swagger Shivanis-MBP:~ shivanibali$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES a26cd2d83e81 eclipse/che-server:nightly "/entrypoint.sh" 2 minutes ago Up 2 minutes 8000/tcp, 0.0.0.0:8080->8080/tcp che

And Image is being created.

Please let me know is this the right way I am doing it? Thanks!

ShivaniBali avatar Jan 22 '18 17:01 ShivaniBali

Yes, it looks like everything's ok. Go to localhost:8080 in your browser

ghost avatar Jan 22 '18 20:01 ghost

yea, does it mean like on hitting the above command, need to just open the localhost, because eclipse che directly opens up on the browser.

I am new to this, so could not assure if its right.

thanks!

ShivaniBali avatar Jan 22 '18 20:01 ShivaniBali

Yes, open localhost:8080 in your browser.

ghost avatar Jan 29 '18 07:01 ghost