Skip to content

Instantly share code, notes, and snippets.

@repodevs
Last active January 1, 2021 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save repodevs/2db5175d055668da814ad6d34a773d82 to your computer and use it in GitHub Desktop.
Save repodevs/2db5175d055668da814ad6d34a773d82 to your computer and use it in GitHub Desktop.
Run Docker inside Docker Ubuntu Images

Run Docker inside Docker Ubuntu Images

The story begin when I want to install docker inside mltooling/ml-workspace-minimal images, which is based on ubuntu 18. so here how to run docker inside docker ubuntu images

docker run -d --name mltool \ 
  -p 8080:8080 \ 
  -v /root:/workspace \ 
  -v /var/run/docker.sock:/var/run/docker.sock \ 
  -e AUTHENTICATE_VIA_JUPYTER=mypassword \ 
  -e INCLUDE_TUTORIALS=false \ 
  mltooling/ml-workspace-minimal:0.11.0

TL;DR: adding -v /var/run/docker.sock:/var/run/docker.sock when run container allow you to run docker inside docker container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment