Zest.

Docker: Run a container

A short, tested Docker example for run a container. Copy it and adjust the names and paths for your project.

Docker
docker run -d --name web -p 8080:80 nginx
docker run --rm -it ubuntu bash                 # interactive, removed on exit
docker run -e KEY=value -v "$PWD":/app image   # env var and bind mount

Find it in Zest

Search for “docker run a container” in Zest and this example appears above the results, with other matches to choose from. Searches stay private.

More Docker examples

All Docker examples