For example, suppose you had an application which required NGNIX and MySQL, you could create one file which would start both the containers as a service without the need to start each one separately. Docker Compose is used to run multiple containers as a single service.Volume deletion is a separate process if you will not defined explicitly then volume will not get deleted You can see same data is present inside the container and in the volume To delete the volume you can use the below command docker-compose down -volumes docker. But if you delete the volume then data will go away.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |