Tag: 窗口

如何远程连接本地容器到Docker Swarm

我有Ubuntu的16服务器上运行docker集装箱在Swarm模式。 Server Docker的版本是1.12.5, build 7392c3b 。 我想在本地机器(或另一个Ubuntu服务器)上创buildDocker容器,并将此容器访问第一台服务器上的Docker Swarmnetworking,以便能够请求Swarm内部的节点。 我的本地机器有Windows 10操作系统。 是否有可能将Docker Swarmnetworking授予Docker远程容器?

Docker的pull给微软/ windowsservercore错误未知blob

我有Mac OS作为我的主机操作系统,并试图拉一个Windows映像的Microsoft / Windows服务器核心。 下载时出现未知的blob错误。 Docker版本是17.03.0-ce,并将OS / arch显示为linux / amd64。 如果我更改类似于下面的操作系统/ arch,会有帮助: https : //i1.wp.com/blog.docker.com/wp-content/uploads/docker-for-windows-switch.gif?zoom= 1.25&W = 1140&SSL = 1 / 如果是这样,有人可以帮助我如何从MAC切换到Windows容器 提前致谢

Docker镜像的Windows组件

我有一个用于testing的Python脚本。 这个脚本也使用'scommand'工具。 它的Windows命令行工具(基本上是一个.bat文件)执行SOATEST相关的东西( https://cloudlink.soasta.com/t5/CloudTest-Knowledge-Base/Using-SCommand-to-Deploy-and-Manage-Grids / ta-p / 44613 )。 我下载了Python图像,并能够执行几个示例python脚本。 但是为了运行这个代码,我需要'scommand'。 我在网上search,没有find'scommand'的任何图像。 我在Ubuntu机器上使用docker,'scommand'是一个windows工具。 有什么办法,我可以得到这个工具可以在linux / unix机器上工作的图像? 我不能使用Windows机器。 有没有什么办法,我只能使这个工具的形象,使Unix / Linuxdocker引擎可以使用它? 或者是有任何版本的docker,可以运行在Ubuntu,也可以采取Windows应用程序也? 我正在使用以下版本的docker工人。 Client: Version: 1.12.3 API version: 1.24 Go version: go1.6.3 OS/Arch: linux/amd64 Server: Version: 1.12.3 API version: 1.24 Go version: go1.6.3 OS/Arch: linux/amd64

Docker – 用不同版本创build多个容器/环境

我从MongoDB开始,并采取四个课程。 他们都使用不同版本的mongodb,python,nodejs,asp.net,mean stack等。我期望的工作空间的结构: courses ├─ mongodb_basic │ ├─ hello_world-2.7.py │ └─ data │ └─ db ├─ python-3.6_mongodb │ ├─ getting_started.py │ └─ data │ └─ db ├─ dotnet_and_mongodb │ ├─ (project files) │ └─ data │ └─ db ├─ mongodb_node │ ├─ (project files) │ └─ data │ └─ db └─ mean_intro └─ (project files) […]

docker-compose错误在Django的欢迎页面上

当我访问地址http://192.168.99.100:8000/时,我无法在浏览器中看到django的欢迎页面。 gmondesi@MRT-3-011 MINGW64 ~/Documents/GitHub/docker-django-tutorial (master) $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DO CKER ERRORS default * virtualbox Running tcp://192.168.99.100:2376 v1 7.04.0-ce gmondesi@MRT-3-011 MINGW64 ~/Documents/GitHub/docker-django-tutorial (master) $ docker-machine ip 192.168.99.100 gmondesi@MRT-3-011 MINGW64 ~/Documents/GitHub/docker-django-tutorial (master) $ docker-compose run web time="2017-04-09T18:03:29-04:00" level=info msg="Unable to use system certificat e pool: crypto/x509: system root pool is not […]

在Docker for Windows中,拒绝mkdir / chown的权限

我正在开发一个鬼博客,并将其作为docker容器进行部署。 由于我的项目的目标之一是使用实时数据来开发主题和其他内容,因此我已经为ghost docker镜像所build议的/ var / lib / ghost目录创build了一个卷装载。 ghost docker镜像装载的驱动器很好,但是当它尝试chown文件时,它会得到权限被拒绝的错误。 我正在运行Windows 10的创build者更新,以及最新的Docker for Windows(即Windows 10专业版1703和Docker版本17.03.1-ce-win5) 作为一个testing,我遵循这个程序,在家和工作(我在以前的版本的Windows 10): 在C:\ users \ joe \中创build一个Project \ site目录 将docker-compose.yml文件放在目录下: 运行docker-compose up 泊坞窗,compose.yml version: '3' services: blog: image: ghost volumes: – ./blog:/var/lib/ghost ports: – "2368:2368" 在我的工作机器上,它创build了博客目录,并使用主题和内容来填充ghost博客的预期内容。 在我的家用机器上,我得到这个错误: 错误:对于博客无法启动服务博客:创build安装源path时出错“/ C / Users / joe / Projects / site / blog”:mkdir / […]

Docker在Windows Server 2012r2上

困惑一件事。 那么在Windows Server 2012上运行Docker引擎是否工作? 还是只是容器操作系统需要2016年或纳米? 所以2012年的docker引擎,运行与2016 /纳米的容器

Windows容器(纳米服务器)与ASP.NET核心

我正在试图制作一个运行ASP.NET Core应用程序的Windows Nano Server容器。 我在Windows Server 2016上构build它。我可以使它工作,但有一个奇怪的问题。 唯一的办法就是创build镜像,运行容器, 然后启动一个交互式的Powershell会话并使用Invoke-WebRequest http://localhost:5000 。 一旦我从容器内部执行该操作,应用程序就可以从其他服务器上看到(由于已知的NAT错误,我无法从Win2016服务器本地浏览容器。) 这是我的Dockerfile: FROM microsoft/dotnet:sdk-nanoserver ARG source WORKDIR /app COPY /ContainerPOC/ . RUN dotnet restore –runtime win10-x64 . RUN dotnet build –framework netcoreapp1.1 –runtime win10-x64 . EXPOSE 5000 ENV ASPNETCORE_URLS http://0.0.0.0:5000 CMD dotnet run –framework netcoreapp1.1 任何想法,为什么这不会“只是工作?”

“价值不能为空。 参数名称:userName“在Docker中安装MSSQL 2014 Express时出错

当我尝试在Dockerfile中安装MSSQL 2014 Express时,它失败,错误“值不能为空。参数名称:userName”。 The following error occurred: Value cannot be null. Parameter name: userName Error result: -2147467261 Result facility code: 0 Result error code: 16387 Please review the summary.txt log for further details Microsoft (R) SQL Server 2014 12.00.5000.00 Copyright (c) Microsoft Corporation. All rights reserved. The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = […]

无法看到容器内的文件

我无法访问使用docker-compose创build的容器中的内容; 有人向我build议,这可能是因为主机上的内容文件夹未正确安装。 (注意:我不知道如何validation这个build议,所以我必须假设它是正确的。) 这是我docker-compose.yml文件: version: "2.1" services: docs: image: docs/docstage ports: – "4000:4000" volumes: – "./:/usr/src/app" 以下是我的docker-compose命令的输出: D:\Dev\Git\docker.github.io>docker-compose up Creating dockergithubio_docs_1 … Creating dockergithubio_docs_1 … done Attaching to dockergithubio_docs_1 docs_1 | Configuration file: none docs_1 | Configuration file: none docs_1 | Source: /usr/src/app docs_1 | Destination: /_site docs_1 | Incremental build: disabled. Enable with –incremental […]