Name a container
So far we have referenced containers only with their ID or with a prefix, but containers can also be referenced by their names also.
Create a new container with name
counter from image
docker run -d -it --name counter loodse/counter.
Now the container with name
counter is started, you can perform various operations
on containers by using its name.
Check the logs using
docker logs counter.