Skip to content

Instantly share code, notes, and snippets.

@TylerJewell
Last active October 8, 2016 18:57
Show Gist options
  • Save TylerJewell/784316135bb8442e693ff7a699c95f86 to your computer and use it in GitHub Desktop.
Save TylerJewell/784316135bb8442e693ff7a699c95f86 to your computer and use it in GitHub Desktop.
Che Docker Container - Complex Syntax
# Run the Che container with:
docker run --net=host \
--name che \
--restart always \
-p 9001:8080 \
-v /var/run/docker.sock:/var/run/docker.sock \
-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 /local:/container \
-v /home/my_assembly:/home/user/che \
-e CHE_LOCAL_CONF_DIR=/container \
-e DOCKER_MACHINE_HOST=172.17.0.1 \
codenvy/che-server --remote:1.1.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment