Skip to content

Instantly share code, notes, and snippets.

@aslamanver
Last active April 8, 2019 08:08
Show Gist options
  • Save aslamanver/2e053868706889ffb97b60397584edee to your computer and use it in GitHub Desktop.
Save aslamanver/2e053868706889ffb97b60397584edee to your computer and use it in GitHub Desktop.

Create container

  1. docker run -dt --network host --name mycontainer ubuntu:18.04
  2. docker exec -it mycontainer /bin/bash

Mount volumes

  1. docker run -dt --network host --name mycontainer -v "$PWD":/home mycontainer-2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment