container-demo

module
v0.0.0-...-f2b1ca1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2019 License: MIT

README

container-demo

Build a docker image

docker build -t {{image-name}} .

Run a simple container in the background

docker run -d {{image-name}}

Stop and remove a running container

docker rm -f {{container name or id}}

Create a new running container and forward a port

docker run -d -p {{host-port}}:{{container-port}} {{image-name}}

Create a new running container mounting a local directory as a volume

docker run -d -v {{directory}}:{{volume}} {{image-name}}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL