

Lastly, we have the image id for the image that was built.

#Docker for mac kubernetes local volume code#
In other words, we are telling the container to check for the contents of the app folder in the present working directory of the host machine where our source code actually resides.

How Docker Volumes work?ĭocker volumes provide a way for us to map the file system inside the container to the file system of the host machine. Also, if you are new to Docker, you can start with basics of Docker. Therefore, we will use it as a base for this post. We already set up a Docker local development workflow for React earlier. Basically, this allows developers to test their incremental changes directly on a running container.
#Docker for mac kubernetes local volume update#
The advantage of enabling Docker volumes is that it allows us to share data between the host and the Docker container.Ī typical example in the case of React application could be that when we update our code in the application, the changes automatically gets reflected in the running Docker container. In order to demonstrate the same, we will use the example of a React application running in our Docker container. In this post, we will look at setting up Docker volume local directory for a Docker container.
