Ports and volumes
Port publishing maps a host port to a container port. Volume mounts persist data or expose host files; verify paths and permissions before starting the container.
Build a docker run command with ports, volumes, environment variables, restart policy, and common options.
Select the image and runtime options required by the container. TuxToolbox assembles the flags into one command so ports, volumes, environment variables and restart behavior are easier to review.
Port publishing maps a host port to a container port. Volume mounts persist data or expose host files; verify paths and permissions before starting the container.
Environment variables are convenient for non-secret configuration. Avoid placing passwords, tokens or private keys directly in shell history when a safer secrets mechanism is available.
Choose a restart policy based on how the container should behave after failure or host reboot. --rm is better suited to temporary containers and conflicts with some long-running use cases.