This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------- | |
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 | |
------------------ |