Which of the following tasks can Docker Cloud perform?
- Create nodes
- None of these
- Start and stop services
- All of these (Ans)
- Create stacks
What is the role of Docker images?
- Provides virtualization functionality across environments
- Used to execute code at runtime
- Acts as a blueprint or template that is used to create containers (Ans)
- All of these
Which of the following options can be used in a Docker Compose file?
- env_file
- All of these (Ans)
- container_name
- networks
Environment variables can be defined in Docker Compose files.
- False
- True (Ans)
How do you show all containers on a machine?
- docker rmi -p
- docker showAllContainers -a
- docker ps -a (Ans)
- docker-machine ps -a
What syntax can be used to create a volume that “hooks” to a source code folder on your machine?
- docker run -v $(pwd):/app imageName (Ans)
- docker run -vol /var/temp imageName
- None of these
- docker run -v /var/www imageName
What Docker command can be used to view information about a custom network?
- None of these
- docker network inspect (Ans)
- docker network view
- docker view network
What syntax can be used to publish an image to Docker Hub?
- docker create /imageName
- docker publish /imageName
- docker move /imageName
- docker push /imageName (Ans)
What benefits do container networks offer?
- Allow containers to communicate with each other in an isolated network (Ans)
- Allow local containers to communicate with external host containers
- Allow local containers to communicate directly with host processes
- All of these
What tool can be used to visually work with images and containers?
- None of these
- VirtualBox
- Docker Engine
- Docker Kitematic (Ans)
What cloud provider does Docker Compose support?
- Amazon Web Services
- All of these (Ans)
- Digital Ocean
- Microsoft Azure
What command-line switch can be used to define a custom Dockerfile file name (such as node.dockerfile) when building a custom image?
- -t
- -customfile
- -f (Ans)
- -v
Which of the following tasks can Docker Compose perform?
- Start and stop containers
- View service logs
- None of these
- All of these (Ans)
- Build services
What command can be used to start a container?
- docker rm [image name]
- docker ps -a
- docker run [image name] (Ans)
- docker go [image name]
Docker Cloud YAML files are identical to Docker Compose YAML files.
- False (Ans)
- True
What Docker Client command can be used to create a container network?
- docker network create (Ans)
- docker build network
- docker createNetwork
- docker ps network
Key benefits of Docker for web developers includes:
- Setup a development environment quickly
- All of these (Ans)
- Simplify working with multiple framework versions
- Consistency between environments
- Ship code faster
A Docker _ has a “thin R/W layer.”
- Image
- File
- None of these
- Container (Ans)
What Docker technologies are available to support communication between containers?
- Docker connect and alias networks
- None of these
- Docker linking and bridge networks (Ans)
- Docker connect and bridge networks
What Docker Compose command can be used to start multiple service containers?
- None of these
- docker-compose start
- docker-compose up (Ans)
- docker run
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals