mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
@@ -418,7 +418,7 @@ ones if you'd like to explore a bit before moving on.
|
||||
|
||||
```shell
|
||||
docker build -t friendlyhello . # Create image using this directory's Dockerfile
|
||||
docker run -p 4000:80 friendlyhello # Run "friendlyname" mapping port 4000 to 80
|
||||
docker run -p 4000:80 friendlyhello # Run "friendlyhello" mapping port 4000 to 80
|
||||
docker run -d -p 4000:80 friendlyhello # Same thing, but in detached mode
|
||||
docker container ls # List all running containers
|
||||
docker container ls -a # List all containers, even those not running
|
||||
|
||||
Reference in New Issue
Block a user