Skip to content

Instantly share code, notes, and snippets.

@madhurjain
Last active October 7, 2018 00:34
Show Gist options
  • Save madhurjain/28bafc466edddefd59642cd4ca088a4b to your computer and use it in GitHub Desktop.
Save madhurjain/28bafc466edddefd59642cd4ca088a4b to your computer and use it in GitHub Desktop.
Docker Commands

Docker on Windows

  • Make sure Virtualization is Enabled in BIOS
  • Install Docker Toolbox on Windows from this link

Commands

Run Docker Image

docker run --name carnd -it -p 4567:4567 -v /c/Users/Test/project:/work udacity/controls_kit:latest
  • --name: Gives a name for easier reference in future
  • -it: Interactive
  • -p: Port Forward
  • -v: Mount volume from host inside the container

List available Docker Images

docker images

Start and Attach to a Docker Image

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