HomeRecipesSnippets


Docker run

Text

Category: Docker
Date: Jan. 28, 2025, 11:29 p.m. PST
Tags: run

Start a container and run it in the background

docker run --name some-name imagetag -d

Start an iteractive container from an image and run a command

docker run -it imagetag bash

Stop the container without saving any changes

docker run --rm -it imagetag bash