Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/monban/container-demo


https://github.com/monban/container-demo

Last synced: 30 days ago
JSON representation

Awesome Lists containing this project

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}}