Run a container
Download and run a tiny test image, then clean it up automatically.
docker run --rm hello-worldBuild, run and inspect containers with practical commands.
Download and run a tiny test image, then clean it up automatically.
docker run --rm hello-worldRun nginx in the background and publish its port locally.
docker run -d --name web -p 8080:80 nginxList containers and read the last lines of the container log.
docker ps\ndocker logs --tail 20 webBuild the Dockerfile in the current directory and give it a tag.
docker build -t hello-app:dev .Start the services described in your compose file.
docker compose up -dStop and remove a named container when you finish experimenting.
docker stop web && docker rm web