Docker Associate Certification Flashcards
Revise and prepare for the Docker Associate Certification
How can we supply our own certificates for UCP and DTR?
We can upload them through the web UIs.
What is the CNM concept called that connects a container sandbox to a network?
Endpoint
What is the recommended method for explicitly setting the storage driver?
Using the Docker daemon config file /etc/docker/daemon.json
What ‘docker run’ flag is used for automatically deleting a container if it stops?
–rm
What is a pluggable framework used for various implementations of containers’ internal storage?
Storage Drivers
What is the docker daemon config file?
/etc/docker/daemon.json
What flag is used to limit which nodes a service’s task will run on using node labels?
–constraint
What command would we use to delete a stack?
docker stack rm STACK
In UCP security a large group of teams that share similar permissions would be called?
An organisation
What is the docker command used for retrieving detailed information about an object?
docker inspect
What flag is used for encrypting an overlay network?
–opt encrypted
What is the name of the type of docker mount that manages the location of the data on the host dynamically?
Volume
What is a ‘devicemapper’ mode that is intended for testing purposes only?
loop-lvm
What flag is used for spreading a services task’s evenly based on a node label?
–placement-pref spread=LABEL
What three main packages are needed for the installation of Docker CE?
- docker-ce
- docker-ce-cli
- containerd.io
What docker command is used for listing the nodes in a swarm?
docker node ls
In UCP security, a group of users that share the same set of permissions is known as what?
A team
What docker command is used for listing all running and stopped containers?
docker ps -a
What is Docker’s networking architectural framework called?
Container Networking Model (CNM)
What does docker EE stand for?
Docker Enterprise Edition
What is the Docker command for service creation?
docker service create
What is the docker command for stopping a running container?
docker container stop CONTAINER
What is the network driver called that isolates containers, but provides further networking implementation?
none
What is the default storage driver for the latest versions of Ubuntu and CentOS called?
overlay2
What restart policy indicates that a container should be automatically restarted if it exists, regardless of whether it succeeds or fails, and when the docker daemon starts?
always
What is the docker daemon flag for setting the storage driver?
–storage-driver
What is the network driver called that uses the host’s network stack directly with no isolation?
host
What command is used for retrieving the ‘unlock-key’ from an unlocked swarm manager?
docker swarm unlock-key
How can we detect vulnerabilites in our software with DTR?
Through the use of image vulnerability scanning, we can detect them.
What command can be used for retrieving more information about an image?
docker image inspect
What would be the location of trusted certificates in Docker?
/etc/docker/certs.d/
What is the non-free version of Docker called?
Docker Enterprise Edition (EE)
What is the free, open-source version of Docker called?
Docker Community Edition (CE)
What ‘devicemapper’ mode is recommended for production use?
direct-lvm
What ‘docker run’ flag is used to set a soft limit on memory usage, and when the host runs out of memory?
–memory-reservation
What flag can be used to provide a Go template to ‘docker inspect’ for retrieving specific data?
–format
How do we change the default logging driver options?
We can set the “log-opts” value in /etc/docker/daemon.json
.
What command can be leveraged to view how storage is being used by Docker?
docker system df
What restart policy indicates that a container must restart if it exits with a non-zero exit code?
on-failure
What command can be used to update the number of replicas in a service?
“docker service update --replicas REPLICAS SERVICE_NAME
ordocker service scale SERVICE_NAME=REPLICAS
”
What is UCP?
The Universal Control Plane (UCP) is an enterprise-grade Docker and Kubernetes cluster with a web UI and contains additional features.
What is the default storage driver for CentOS 7 or earlier called?
devicemapper
What is the restart policy that indicates a container should be automatically restarted if it exits, regardless of whether it succeeds or fails, when the docker daemon starts, unless the container is explicitly stopped?
unless-stopped
What is the service publising mode that only listens on nodes where the services tasks are running?
host
What is the command for creating or updating a stack?
docker stack deploy
In UCP security, a subject who can do something, or rather a role that defines what they can do, and the collection of objects that they are allowed to act upon is called?
A grant defines what they can do and the collection of objects that they are allowed to act upon.
What flag is used to set the network to a container that it will be attached to?
–network
What command can be used to the rotate the ‘unlock-key’ in a swarm?
docker swarm unlock-key –rotate
How can we change the default logging driver?
We can set the “log-driver” value in “etc/docker/daemon.json”
What flag is used to set a custom DNS for a container?
–dns
What is the storage model called that stores data in regular files on the host file system?
Filesystem storage
What volume driver stores data externally using SSH, so it is easily accessed from any node in a cluster?
vieux/sshfs
What is the docker run flag for setting a hard upper limit on memory usage?
–memory
What is the docker service mode called that runs exactly one replica on each node?
global
How would we grant a user access to Docker?
We would add the user to the docker group