Skip to content

Instantly share code, notes, and snippets.

@Bootsektor
Last active February 21, 2018 20:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bootsektor/2f97dc03a8d333573ca77ea632c88a91 to your computer and use it in GitHub Desktop.
Save Bootsektor/2f97dc03a8d333573ca77ea632c88a91 to your computer and use it in GitHub Desktop.
----------------
MORE THAN ONE PORT:
docker run --detach -p 8055:80 -p 8455:443 someething/something:latest
-----------------
Run an image without saving the container after exit:
$ docker run -ti --rm image_name bash
------------------
Map file (USB, directory, etc...):
$ sudo docker run -it --rm --privileged -v <host_path>:<image_path> <IMAGE_NAME> bash
------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment