NEW
Font size
WorksheetsDocker and Kubernetes - Day-1
Total questions: 10
Worksheet time: 2mins
The language used to write Dockerfile is:
None of them
JSON
XML
YAML
Docker is written in programming language:
C++
JavaScript
Go
Scala
A container is:
An instance of docker image
a process bound by Linux Primitives
an isolated space in Linux Primitives
an unified way to ship software
The isolation between processes in Linux is achieved through:
cgroups
namespaces
Linux Primitives
security groups
How do you map a host port to the container port?
docker run -it image:5000
docker run -p 5000:5000 image:5000
docker run --expose 5000:5000 image:5000
None of them are correct
The command to show the logs from docker container is:
docker log <containerName>
docker logs -t <containerName>
docker logs <containerName>
docker log -t <containerName>
The containers run on top of:
Docker Engine
Kernel
Hypervisor
Docker image
Docker command use to create and start a container is:
docker exec
docker start
docker create
docker run
The standards around container formats and runtimes is:
Container runtime
Open Container Specification
Cloud Native Container Specification
Open Container Initiative
Which of the following is a valid Dockerfile instruction?
ENTRY
RUN
EXEC
BUILD
