How to save an image in docker toolbox

Asked 2 years ago, Updated 2 years ago, 52 views

I use the Docker Toolbox on Windows 10 Home.

I would like to save the image and save it, but it seems that it will be banned because it runs on VirtualBox.Also, I don't know where to save it.

Is there any way to write an image to a file and save it?

↓Error Message

$docker save image_uwsgi-nginx-flask_full_set:latest>image_uwsgi-nginx-flask_full_set.tar
bash: image_uwsgi-nginx-flask_full_set.tar: Permission denied

↓ Information about docker you are using

$docker version
Client:
 Version—18.03.0-ce
 API version: 1.37
 Go version: go1.9.4
 Git commit : 0520e24302
 Build: Fri Mar 2308:31:36 2018
 OS/Arch: Windows/amd64
 experimental:false
 Orchestrator:swarm

Server:Docker Engine-Community
 Engine:
  Version: 19.03.5
  API version: 1.40 (minimum version 1.12)
  Go version: go1.12.12
  Git commit: 633a0ea838
  Built: Wed Nov 1307:28:45 2019
  OS/Arch: linux/amd64
  experimental:false
 containerd:
  Version—v1.2.10
  GitCommit: b34a5c8af56e510852c35414db4c1f4fa6172339
 US>runc:
  Version: 1.0.0-rc8+dev
  GitCommit: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
 docker-init:
  Version: 0.18.0
  GitCommit—fec3683
VirtualBox 
Version 6.1.4 r136177 (Qt5.6.2)

windows docker docker-toolbox

2022-09-30 19:27

1 Answers

If you are using the Docker Quickstart Terminal in the Docker Toolbox, there are drives mounted in the host environment such as /c, so docker save will be saved in the host environment.

For example:

nek MINGW64~
$ pwd
/c/Users/nek

nek MINGW64~
$ docker save piyo:latest>piyo.tar

nek MINGW64~
$ 

Then piyo.tar is stored in the host-side C:\Users\nek.


2022-09-30 19:27

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.