question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Starting eclipse che with parameters in docker outputs "You are missing a mandatory parameter"

See original GitHub issue

Reproduction Steps:

I am trying to run eclipse che following the documentation. Upon providing the command :

docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/docker eclipse/che start

Always provides this output:

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=<daemon-location> ...'

Which I do not understand as I am explicitly providing the same parameters.

OS and version:

Ubuntu 16.04

I am new to docker. Point to note that I am not the sudo user, my user just have been added to docker group.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:36 (14 by maintainers)

github_iconTop GitHub Comments

20reactions
Virtlinkcommented, Feb 1, 2017

I have the same issue when I follow the instructions here:

$ docker run -it 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 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=<daemon-location> ...'

Neither using sudo, nor using nightly, nor sudo chmod 777 /var/run/docker.sock makes a difference. The environment variable $DOCKER_HOST is undefined in my shell.

However, this full command does work:

$ docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock \
  -v ~/test/:/data eclipse/che start

OS: Linux Mint 18.1 Cinnamon 64-bit Docker: 1.13.0 build 49bf474 (info)

4reactions
TylerJewellcommented, Feb 1, 2017

@virtlink - your execution is expected. We already require docker sock or docker host to be added to run. We provide the simpler syntax in our docs to simplify how people get started. You provide the simple syntax first and then we guide you to add the other mounts.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Re: [che-dev] Trying Eclipse Che latest release on ubuntu
when we have the USE_DOCKER parameter false Che is not starting with docker? ... (OPTIONAL) CHE_LOGS_DIR ==> Directory for Che output logs.
Read more >
Build Docker CLIs Your Users Will Love | Eclipse Che Blog
After 9 months of development, we recently released Eclipse Che 5 ... -v <LOCAL_PATH>:/data Where user data savedOPTIONAL DOCKER PARAMETERS:
Read more >
Eclipse CHE - Java mon amour
INFO: INFO: You are missing a mandatory parameter: INFO: 1. Mount 'docker.sock' for accessing Docker with unix sockets. INFO: 2. Or, set ...
Read more >
Build your Java image - Docker Documentation
If you prefer to not install Java on your machine, you can skip this step, ... Let's start our application and make sure...
Read more >
Chapter 4. Selecting a workspace IDE
Use the che-editor.yaml file to define a default IDE for the project users. For a list of supported IDs, see Optional parameters for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found