💾 Archived View for freeshell.de › tldr › docker-run.gmi captured on 2023-04-19 at 23:46:45. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

docker run

Run a command in a new Docker container.

More information.

docker run {image:tag} {command}
docker run -d {image} {command}
docker run --rm -it {image} {command}
docker run -e '{variable}={value}' -e {variable} {image} {command}
docker run -v {/path/to/host_path}:{/path/to/container_path} {image} {command}
docker run -p {host_port}:{container_port} {image} {command}
docker run --entrypoint {command} {image}
docker run --network {network} {image}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY