Questions
- Since Docker creates a default bridge network, there is no reason to create a custom bridge.
A. True
B. False
- Which of the following is an example of a socket?
A.
http:192.168.100.10
B.
192.168.100.10
C.
192.168.100.10:80
D.
https://192.168.100.10
- How would you start a container running a web server on port
8080
namednginx-web
on a host that already has its host port (8080
) bound to another container?A.
docker run -d nginx-web bitnami/nginx
B.
docker run -p 8080:8080 -d nginx-web bitnami/nginx –force
C.
docker run -p 8081:8080 -d nginx-web bitnami/nginx
D. Since port
8080
is bound on the host, you cannot run a container on port8080
- You suspect an image may contain malware. You need to run the image safely to look at its contents. What Docker command will mitigate any network impact?
A.
docker run -isolate -it badimage bash
B.
docker run -p 0:0 -it badimage bash
C.
docker run -it badimage bash
D.
docker run --network=none -it badimage bash
- Once a container...