From the course: Deploying ASP.NET Core Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Save an image to a file

Save an image to a file

From the course: Deploying ASP.NET Core Applications

Start my 1-month free trial

Save an image to a file

- [Instructor] We've build a number of images using Docker build, but these are all stored locally on our machine. What if we need to transfer this image to another machine to push it to a production server, for example. That's where the Docker save command comes in. If we run Docker images, we can see all the images that I've stored locally on this machine. To export or save one of these, we can run Docker save -o to specify an output filename, in this case I'll call it hellocore.tar, and specify the image I wanna save out. This command will save a tar ball of the image as a single file on the file system that you can then easily transport to another computer. This command can take a few minutes, especially if it's a large image, in my case it's almost 600 megabytes. When it's done we can see the file on the file system, 600 megabytes of image there. The opposite of the save command is the load command, I can use Docker load -i and the filename to load that image back into Docker and…

Contents