12. docker --name give name to containe

01

when you run a container, include the --name flag to give the container a name

docker run --name
docker run --name web-app -d -p 8000:80 nginx

02

now we can use the new name to use the container

docker ps web-app