DCA Flashcards
(500 cards)
What are the components of Docker Engine?
- REST API, Docker Daemon
- Images, Containers, Volumes
- Docker CLI, Docker Daemon, REST API
Docker CLI, Docker Daemon, REST API
What component of the docker engine manages the images, containers, volumes, and networks on a host?
- REST API
- Docker Daemon
- Docker CLI
Docker Daemon
What component of the Docker architecture is responsible for managing containers on Linux on version 1.15 of Docker Engine?
- LibContainer
- Docker API
- LXC
LibContainer
We can run containers without installing Docker?
- True
- False
True
Which component is responsible for keeping the containers alive when the Docker Daemon goes down?
- LibContainer
- Runc
- Containerd
- Containerd-Shim
Containerd-Shim
What are the primary objects that Docker engine manages?
- RunC
- LibContainer
- Images, Containers, Volumes, Networks
- Images, Containers, Volumes, Networks
By default, data stored inside the container is always persistent?
- True
- False
False
By default, Docker is configured to look for images on Google Cloud Registry?
- True
- False
False
Which component is a read-only template used for creating a Docker container?
- Docker Network
- Docker Images
- Container
- Docker volume
Docker Images
What is the default data directory for Docker?
- /var/lib/docker
- /var/log/docker
- /etc/docker
- /home/docker
/var/lib/docker
What does OCI stand for?
- Open Communication Initiative
- Open Container Initiative
- Open Command Interface
- Open Container Interface
Open Container Initiative
What are the 2 specifications from OCI?
- container-spec
- runtime-spec
- image-spec
- oci-spec
- libcontainer-spec
- runtime-spec
- image-spec
What is the command to view the version of docker engine installed?
- docker –version
- docker version
- docker engine info
- docker info engine
docker version
What is the command to start docker daemon manually?
- docker
- dockerd
- docker-engine
- docker –start-engine
dockerd
On what interfaces are the docker daemon made available by default?
- TCP socket
- UDP socket
- Unix socket
- 192.168.1.10
Unix Socket
What is the port conventionally used to configure un-encrypted traffic on TCP?
- 2345
- 2346
- 2375
- 2376
2375
What file is used to configure the docker daemon?
- /var/lib/docker/docker.conf
- /var/lib/docker/daemon.json
- /etc/docker/daemon.json
- /etc/docker/daemon.conf
- /etc/docker/daemon.json
What flags are used to configure encryption on docker daemon?
- tlsverify, tlscert, tlskey
- tlsverify, key, cert
- key, cert, tls
- host, key, cert, tls
tlsverify, tlscert, tlskey
What is the default network driver used when a container is created?
- overlay
- bridge
- none
- host
bridge
What is the command used to list the running containers on the Docker Host?
- docker container ls
- docker container start
- docker container stop
- None of the above
docker container ls
Which of the below commands create a container with nginx image and name nginx?
- docker container create nginx –name nginx
- docker container –name nginx nginx
- docker container run nginx
- docker container create –name nginx nginx
docker container create –name nginx nginx
How to list all running and stopped containers and their status?
- docker container ls
- docker container ls -a
- docker container ls -aq
- docker container ls -q
docker container ls -a
How to start a stopped Container?
docker container start nginx
How do I get only the IDs of running containers?
docker container ls -q
unless-stopped
restart policy?
docker container upgrade --restart unless-stopped $(docker container ls -q)
docker container update --restart unless-stopped $(docker container ls -q)
docker container upgrade --restart unless-stopped $(docker container ls -aq)
docker container update --restart unless-stopped $(docker container ls -aq)
docker container ps SERVICE-NAME
docker container ls
–update-failure-action
?
```
pause
continue
stop
rollback
rolling-update
```
’disk=ssd'
label to worker1
in a swarm cluster.
docker node update --label-add disk=ssd worker1
docker node update --label-rm disk=ssd worker1
docker service update --labels disk=ssd worker1
docker service update --container-label disk=ssd worker1
webapp
?
docker stack deploy webapp
docker stack ls webapp
docker stack services webapp
docker stack ps webapp
docker swarm join
command to join the new node to the cluster.
Deploy an instance of the ucp-agent on the new node.
ucp-agent then installs the necessary components on the worker node.
docker swarm join
command to join the new node to the cluster.
ucp-agent then installs the necessary components on the worker node.