在构建时缺少存储选项 [英] Missing storage-opts on build-time
问题描述
我想准备一个具有特定数据库配置的图像。
I want to prepare an image with a certain database configuration.
我做了什么:
运行容器
docker run --name XYZ -d -p 1433:1433 -e "sa_password=Starten123$" -e ACCEPT_EULA=Y --storage-opt size=1024G -v "D:/temp:C:/temp/" microsoft/mssql-server-windows-developer
启动sql management studio 17并连接到服务器(通过docker inspect获取ip)
Start up sql management studio 17 and connect to the server (get ip via docker inspect)
从已安装的卷恢复多个大型数据库备份
Restore several large database backups from the mounted volume
将新用户添加到sql server并设置所有dbs的所有权访问权限
Add a new user to the sql server and set ownership access for all the dbs
断开连接
停止容器
提交容器
docker commit XYZ test/tag
导致错误:
Error response from daemon: re-exec error: exit status 1: output: time="2017-05-30T15:49:20+02:00" level=error msg="hcsshim::ImportLayer failed in Win32: The system cannot find the path specified. (0x3) layerId=\\\\?\\D:\\System\\Data\\Docker\\windowsfilter\\899ad4a412db2196b253897ecbaa68dc50698545bfc0f4ae4fb3e43f2f10926a flavour=1 folder=C:\\Windows\\TEMP\\hcs139595379"
hcsshim::ImportLayer failed in Win32: The system cannot find the path specified. (0x3) layerId=\\?\D:\System\Data\Docker
\windowsfilter\899ad4a412db2196b253897ecbaa68dc50698545bfc0f4ae4fb3e43f2f10926a flavour=1 folder=C:\Windows\TEMP\hcs139595379
我做错了什么?
我已经更新到最新版本的docker(我第一次得到错误后)。当前版本/信息输出:
Ive updated to the latest version of docker (after i got the error the first time). Current Version/Info Output:
Client:
Version: 17.03.1-ee-3
API version: 1.27
Go version: go1.7.5
Git commit: 3fcee33
Built: Thu Mar 30 19:31:22 2017
OS/Arch: windows/amd64
Server:
Version: 17.03.1-ee-3
API version: 1.27 (minimum version 1.24)
Go version: go1.7.5
Git commit: 3fcee33
Built: Thu Mar 30 19:31:22 2017
OS/Arch: windows/amd64
Experimental: false
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 3
Server Version: 17.03.1-ee-3
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: l2bridge l2tunnel nat null overlay transparent
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 14393 (14393.1198.amd64fre.rs1_release_sec.170427-1353)
Operating System: Windows Server 2016 Standard
OSType: windows
Architecture: x86_64
CPUs: 12
Total Memory: 63.92 GiB
Name: S6
ID: 2OZY:DSZI:JEUU:4ISW:GJ23:F2TA:F5U3:XR4Z:YZKU:SAID:362W:MMXD
Docker Root Dir: D:\System\Data\Docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
推荐答案
您可以通过打开客户端/服务器的调试模式来获取更多信息吗?
Can you get additional information by turning on Debug Mode for the client/server?
- 服务器:添加 " debug":true to %ProgramData%\Docker\daemon.json并重新启动服务(储存在&NBSP日志; C:\ProgramData\Docker)
- 客户端:重复与-D您的容器运行的步骤对米
这篇关于在构建时缺少存储选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!