当我尝试dism /Mount-WIM在microsoft/windowsservercore图像中使用时,出现下一个错误:
Deployment Image Servicing and Management tool
Version: 10.0.14393.0
Error: 0xc1420121
The image could not be mounted because the wimmount.sys driver is not installed on this machine. To fix this error, install the wimmount.sys driver.
Run Code Online (Sandbox Code Playgroud)
可以dism /Mount-WIM在docker中使用吗?
我使用的是 Windows 10 企业版 1607,
我们使用代理自动配置 (PAC) 脚本进行代理配置。
问题是 docker 连接。我已经安装了 Docker 17.12.0-ce(稳定版)。我无法将 Docker 配置为使用 PAC 来拉取 Docker 注册表映像。
请帮助!我已经多次浏览了官方文档,但没有任何帮助。我不确定我是否遗漏了什么。
Amazon Elastic Beanstalk 需要来自 Docker 的明文密钥才能访问 Docker Hub 上的私有映像。根据 AEB 上的说明,您只需运行docker login以在“%UserProfile%/.docker/config.json”中生成这些凭据。但是,这会生成以下文件:
{
"auths": {
"https://index.docker.io/v1/": {}
},
"HttpHeaders": {
"User-Agent": "Docker-Client/17.12.0-ce (windows)"
},
"credsStore": "wincred"
}
Run Code Online (Sandbox Code Playgroud)
凭据存储在 Windows 凭据管理器“wincred”中。
我如何改为强制在 config.json 文件中临时生成凭据?
环境?
docker for windows 10 version: Docker version 17.09.0-ce, build afdb6d4 docker
images: mysql/mysql-server latest docker has
setting shared Drive C:
我想运行一个 mysql 容器,所以我使用以下命令:
C:\WINDOWS\system32>docker run -d -p 3306:3306 -v "C:/Program Files/MySQL/Config":/etc/mysql/ -v "C:/Program Files/MySQL/Data/":/var/lib/mysql/ --name mysqlserver mysql/mysql-server
c2b45a6668746f0aa708b17f05a720ee6b4cff477eeaef714685293d1b60f44b
C:\WINDOWS\system32>docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c2b45a666874 mysql/mysql-server "/entrypoint.sh my..." 9 seconds ago Exited (1) 7 seconds ago mysqlserver
2de1dbd9880b redis "docker-entrypoint..." 4 days ago Exited (0) 4 days ago myredis
35c805969295 redis "docker-entrypoint..." 9 days …Run Code Online (Sandbox Code Playgroud) 我需要支持 T-SQL 和 SQL Server 的其他一些东西的 dockerized 数据库。当然,SQL Server 有一个容器,但它占用太多空间。所以我尝试将 SQL Server LocalDB(大约 200mb)放在一个 docker 容器中。
它具有静音安装模式,可以轻松安装。但问题是如何从容器外部访问它?(我也需要从我的本地 PC 访问它)这种情况有什么解决方案吗?现在我只有一个想法来实现一些服务来在 SQL Server LocalDB 和外部连接之间进行通信,然后将它暴露在同一个容器中的 db 附近。大家能不能给点建议?
构建 docker 映像时出现不一致的错误。如果我继续运行 docker build,这将失败大约 3 次中的 1 次。
完整的错误是:
/usr/share/dotnet/sdk/2.1.301/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(171,5): error MSB4018: The "GenerateRuntimeConfigurationFiles" task failed unexpectedly. [/app/MyProject.Api/MyProject.Api.csproj]
/usr/share/dotnet/sdk/2.1.301/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(171,5): error MSB4018: System.IO.IOException: The process cannot access the file '/app/MyProject.Api/bin/Release/netcoreapp2.1/MyProject.Api.runtimeconfig.json' because it is being used by another process. [/app/MyProject.Api/MyProject.Api.csproj]
/usr/share/dotnet/sdk/2.1.301/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(171,5): error MSB4018: at System.IO.FileStream.Init(FileMode mode, FileShare share) [/app/MyProject.Api/MyProject.Api.csproj]
/usr/share/dotnet/sdk/2.1.301/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(171,5): error MSB4018: at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) [/app/MyProject.Api/MyProject.Api.csproj]
/usr/share/dotnet/sdk/2.1.301/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(171,5): error MSB4018: at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) [/app/MyProject.Api/MyProject.Api.csproj] …Run Code Online (Sandbox Code Playgroud) 我想缓解我的容器化 SQL Server 遇到的内存问题。我在 Windows 10 v 1709 上运行它。
为了进行测试,我使用以下命令创建了一个 SQL Server 容器:
docker run -d -p 1433:1433 --name sql1 -e SA_PASSWORD=1Secure*Password1
-e ACCEPT_EULA=Y microsoft/mssql-server-windows-developer:2017-latest
Run Code Online (Sandbox Code Playgroud)
在这个容器化的 SQL 实例中,我创建了一个数据库,直到它变得太大为止。我现在遇到内存不足错误。例如,当我在 SSMS 中运行查询时,我收到“资源池‘默认’中的系统内存不足,无法运行此查询。” 同样,当我检查 SQL Server 环形缓冲区时,我看到RESOURCE_MEMPHYSICAL_LOW. 当我收到这些错误时,我的笔记本电脑可用的 16 gig 内存中只有 8 gig 正在使用中。所以这不是真实物理内存的问题。
Docker for Windows 在 Windows 10 上运行时,在默认为 1GIG RAM 的 Hyper-V VM 中运行容器。我可以通过启动我的容器,然后使用它进入交互模式来确认这一点:
PS C:\repos\somefolder> docker exec -it sql1 powershell
Run Code Online (Sandbox Code Playgroud)
在交互模式下,按照这个其他 SO 示例,我看到以下结果:
PS C:\> systeminfo | findstr "Memory"
Total Physical Memory: 1,023 MB
Available …Run Code Online (Sandbox Code Playgroud) 如何在 Docker for Windows 中设置共享驱动器?我使用的是最新版本 18. Stable 和 Edge。我的设置屏幕如下所示。它缺少一些选项,如共享驱动器、高级和网络,如第二张图片所示。为什么我缺少这些选项?
我在Windows 10计算机上运行Postgres,我想从Docker容器连接到它.我遵循了许多来源的指示,事情应该有效,但事实并非如此.
用于创建Docker容器的命令行:
docker run --rm -d --network=host --name mycontainer myimage
Run Code Online (Sandbox Code Playgroud)
在postgresql.conf:
listen_addresses = '*'
Run Code Online (Sandbox Code Playgroud)
在pg_hba.conf:
host all all 172.17.0.0/16 trust
Run Code Online (Sandbox Code Playgroud)
在我的容器的bash shell中,我运行:
psql -h 127.0.0.1
Run Code Online (Sandbox Code Playgroud)
我收到错误:
psql:无法连接到服务器:连接被拒绝
服务器是否在主机"127.0.0.1"上运行并接受端口5432上的TCP/IP连接?
毋庸置疑,Postgres肯定在我的计算机上运行,我可以从本地应用程序查询它.我错过了什么?
我是 Windows 开发新手,我刚刚在 Windows 10 上安装了 docker。
当我尝试运行/拉取 hello-world 容器时,它突然停止并显示以下消息,
C:\Users\harshaa>docker pull library/hello-world
Using default tag: latest
latest: Pulling from library/hello-world
e46172273a4e: Retrying in 3 seconds
1f7d468f830c: Retrying in 3 seconds
35655e48c5c5: Download complete
8159aad5f944: Download complete
Run Code Online (Sandbox Code Playgroud)
在此之后,它恢复并重复相同的行为。
docker ×10
sql-server ×2
.net-core ×1
c# ×1
dockerfile ×1
localdb ×1
mysql ×1
postgresql ×1
proxy ×1