💾 Archived View for freeshell.de › tldr › docker-run.gmi captured on 2023-09-28 at 16:24:17. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
Run a command in a new Docker container.
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).