![]() ![]() Now, mount this volume to a container using the ‘-v’ flag and connect to the container using the ‘docker exec’command, create a new test file ‘test.txt’. we will populate the data after mounting it to any container then, if we browse this location, we will get the files or folders over here that we have created at the mounting location in the container.ģ. So if we browse that location, there is nothing right now. Check all details of this volume using the ‘inspect’ command as below:Įxplanation: The ‘Mountpoint’ is the location where the files or folders going to store actually. Create a new volume named ‘my-vol’ and list it as below.Ģ. We will then mount the same volume to different containers and check the test file over there to verify it worked as expected. We will then mount this volume to a container and then create a test file in the container at the location where we mounted the volume. Scenario: We will create a volume first and verify it, and then we will check the all details about the newly created volume.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |