Quiz: Containers
Test the concepts that you have learned in this chapter.
1
Suppose you are using a Docker host with no pre-existing Docker images or containers.
Which of the following commands will print the Hello world
in an interactive Python shell?
A)
docker run python:3.7.9-alpine3.11 python3
print("Hello world")
B)
docker run -it python:3.7.9-alpine3.11 python3
print("Hello world")
C)
docker container run python:3.7.9-alpine3.11 python3
print("Hello world")
D)
docker container run -it python:3.7.9-alpine3.11 python3
print("Hello world")
Question 1 of 100 attempted
Get hands-on with 1200+ tech skills courses.