In this chapter, we reviewed container persistency and networking in non-cluster environments. Let's verify our understanding of these topics with some questions:
- Which of the following statements is not true?
a) Containers are not ephemeral – once created, they will stay in the host unless they are removed.
b) We can run more than one container at a time using the same image.
c) Containers created from the same image share their filesystems.
d) All of these statements are false.
- Which methods are allowed when creating a volume?
a) We can manually create a volume using the docker volume create command for volume objects.
b) We can declare a VOLUME sentence in a Dockerfile to use a volume on containers created from a built image.
c) We can use Docker host filesystems inside containers as if they were Docker volumes.
d) Volume creation is only allowed in terms of container creation or execution.
- When we remove a container, all associated volumes will be removed...