Contenido perteneciente al curso Docker avanzado.
Which of the following commands will automatically create a volume when a container is started?
docker container run –name nginxtest –volumes=/app nginxdocker container run –name nginxtest -v /app:mount nginxdocker container run –name nginxtest –volumes myvol:/app:new nginxdocker container run –name nginxtest -v myvol:/app nginx (Correcta)Which one of the following commands will show a list of volumes for a specific container?
docker container logs nginx –volumesdocker container inspect nginx (Correcta)docker volume inspect nginx docker volume logs nginx –containersWhich one of the following commands will result in the volume being removed automatically once the container has exited?
docker run –del -v /foo busyboxdocker run –read-only -v /foo busyboxdocker run –rm -v /foo busybox docker run –remove -v /foo busyboxNo hay ninguna opción correcta ya que en todos los casos es incorrecta la sintaxis de los volúmenes.
A container named “analytics” that stores results in a volume called “data” was created (docker run -d --name=analytics -v data:/data app1). How are the results accessed in “data” with another container called “app2”?
docker run -d –name=reports –volume=data app2docker run -d –name=reports –volumes-from=analytics app2 (Correcta)docker run -d –name=reports –volume=app1 app2docker run -d –name=reports –mount=app1 app2A server is running low on disk space. What command can be used to check the disk usage of images, containers, and volumes for Docker engine?
docker system df (Correcta)docker system prunedocker system freedocker system psWhich of the following are types of namespaces used by Docker to provide isolation? (Choose 2.)
What is the difference between a resource limit and a resource reservation when scheduling services?
adequate resources for scheduling. (Correcta)
Which of the following namespaces is disabled by default and must be enabled at Docker engine runtime in order to be used?
Útil para acceder por ejemplo a LDAP
Which of the following statements is true about secrets?
Existe el comando docker secret create
Following the principle of least privilege, which of the following methods can be used to securely grant access to the specific user to communicate to a Docker engine? (Choose two.)
--host 0.0.0.0:2375 option to the Docker daemon to listen on port 2375 over TCP on all interfaces--host 127.0.0.1:2375 option to the Docker daemon to listen on port 2375 over TCP on localhost