Skip to content

Instantly share code, notes, and snippets.

View Bootsektor's full-sized avatar

Gunther Hoffmann Bootsektor

  • Germany, Saxony, Dresden
View GitHub Profile
----------------
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
------------------