Questions
- Which flag do you have to append to
docker container ls
to view all the containers, both running and stopped? - True or false: the
-p 8080:80
flag will map port80
on the container to port8080
on the host. - Explain the difference between what happens when you use Ctrl + C to exit a container you have attached, compared to using the
attach
command with--sig-proxy=false
. - True or false: The
exec
command attaches you to the running process. - Which flag would you use to add an alias to a container so that it responds to DNS requests, when you already have a container running with the same DNS name in another network?
- Which command would you use to find out details on a Docker volume?