display id all container docker 1

display id all container docker

docker ps -q

Here is what the above code is Doing:
1. We’re using the docker command to run a container.
2. We’re using the -d flag to run the container in detached mode.
3. We’re using the –name flag to name the container “my_nginx”.
4. We’re using the -p flag to map port 80 on the host to port 80 on the container.
5. We’re using the nginx image to create the container.

Similar Posts