Docker on Amazon Web Services
上QQ阅读APP看书,第一时间看更新

Questions

  1. True/false: You use the FROM and TO directives to define a multi-stage Dockerfile.
  2. True/false: The docker command --rm flag automatically deletes a container after it has exited.

 

  1. True/false: When you run your workflow, you should only build application artifacts once.
  2. True/false: When running the docker-compose run command with no additional flags, if the targeted services started fails with an error, docker-compose will exit with a non-zero code.
  3. True/false: When running the docker-compose up command with no additional flags, if one of the services started fails with an error, docker-compose will exit with a non-zero code.
  4. True/false: You should configure a Docker Compose version of 3.x if you want to use Docker Swarm.
  5. You configure the service_healthy condition on a dependency of a service in your Docker file.  Then you run the service using the docker-compose run command; the dependency is started, however, Docker Compose does not wait until the dependency is healthy and starts the service immediately, causing a failure. How could you resolve this?
  6. You create a service in Docker Compose with a port-mapping of 8000:8000. When you attempt to start this service, an error is raised indicating the port is in use. How could you resolve this and ensure it never happens again?
  7. After creating a Makefile, you receive an error about a missing separator when attempting to run a target. What is the most likely cause of this error? 
  8. Which GNU Make function allows you to capture the output of a shell command?
  9. You define a target called test in a Makefile, however when you run make test, you get a response saying there is nothing to do. How could you resolve this?
  10. Which properties must be configured in a Docker Compose service definition to use the docker-compose push command?