Docker for DevOps Engineers: Part-3
Nihal Apretwar
DevOps?? || Cloud?? || Linux??|| Docker?? || Git?? || Kubernetes?? || Terraform??? || AWS?? || Monitoring???
Docker-Volume:
A Docker volume is a way to store data outside of a Docker container's filesystem. This allows data to persist even if the container is deleted or recreated. Volumes can also be shared among multiple containers and can be backed by various storage drivers, such as local files or network storage. This allows for greater flexibility and control over data storage in a Docker environment.
Docker Network:
Docker network is a feature in Docker that allows containers to communicate with each other and with the host system. It provides a way to create and manage virtual networks for container communication. There are several types of networks that can be created in Docker, including bridge, host, and overlay networks. Each type of network provides different capabilities and can be used for different use cases. For example, a bridge network allows containers on the same host to communicate with each other, while an overlay network allows containers on different hosts to communicate. Additionally, Docker networks can be used to configure network settings such as IP addresses, ports, and DNS.
Task-1:
Create a multi-container docker-compose file which will bring?UP?and bring?DOWN?containers in a single shot (Example - Create application and database container)
领英推荐
Task-2: