CONFIGURATION
You can configure the daemon so that containers remain running if the daemon
becomes unavailable. - Answer- True. By default, when the Docker daemon terminates,
it shuts down running containers. Starting with Docker Engine 1.12, you can configure
the daemon so that containers remain running if the daemon becomes unavailable. This
functionality is called live restore. The live restore option helps reduce container
downtime due to daemon crashes, planned outages, or upgrades.
Which is the default logging driver of Docker for Linux distributions? - Answer- The
default logging driver is json-file.
Which is the recommended way to installed Docker Engine on a production server? -
Answer- You can install Docker Engine in different ways, depending on your needs:
· Most users set up Docker's repositories and install from them, for ease of installation
and upgrade tasks. This is the recommended approach.
Which command can you use to interactively monitor all container activity in the Docker
engine? - Answer- Use docker system events to get real-time events from the server.
These events differ per Docker object type such as containers, images, plugins,
volumes and daemons.
Which of the following is not an endpoint exposed by Docker Trusted Registry (DTR)
that can be used to assess the health of a Docker Trusted Registry replica? - Answer-
/replica_status
DTR endpoints - Answer- /health
/api/v0/meta/cluster_status
/nginx_status
Which is the recommended way to configure the daemon flags and environment
variables for your Docker daemon in a platform-independent way? - Answer- Set the
configuration options in '/etc/docker/daemon.json'
Which modes does Docker provide for delivering messages from the container to the
log driver? (select two) - Answer- - blocking
- nonblocking
Which of the following commands will set the Docker engine into debug mode? -
Answer- echo '{"debug": true}' > **/etc/docker**/daemon.json ; sudo kill -HUP
How can you configure the default logging driver for containers? - Answer- Set the log-
driver option in the deamon.json file