
上QQ阅读APP看书,第一时间看更新
Questions
- True/false: You use the FROM and TO directives to define a multi-stage Dockerfile.
- True/false: The docker command --rm flag automatically deletes a container after it has exited.
- True/false: When you run your workflow, you should only build application artifacts once.
- 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.
- 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.
- True/false: You should configure a Docker Compose version of 3.x if you want to use Docker Swarm.
- 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?
- 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?
- 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?
- Which GNU Make function allows you to capture the output of a shell command?
- 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?
- Which properties must be configured in a Docker Compose service definition to use the docker-compose push command?