Quiz: Containers
Test the concepts that you have learned in this chapter.
1
To answer the questions, you can try out the commands in the terminal given below.
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 run python:3.7.9-alpine3.11 python3 "Hello world"
D)
docker run -it python:3.7.9-alpine3.11 python3 "Hello world"
Question 1 of 70 attempted
Get hands-on with 1400+ tech skills courses.