Tag: 窗口

Docker Windows 10托pipe的卷 – 不创build文件

我正在尝试使用docker-compose创build一个MySQL docker容器,使用下面的configuration文件。 version: '2' services: # Name of the service as Docker will reference. mysqlDb: # The image, change 5.7 to any of the supported docker versions. image: mysql:latest # Required environment variables. Creates a Database with a # root user, non-root user both with passwords. # # MYSQL_ROOT_PASSWORD defines the root password of the […]

无法从泊坞窗容器中的微服务连接到localhost中的rabbit

我已经创build了一个微型服务,它有rabbitmq队列的消费者和生产者。 我可以在本地机器上运行这个微服务没有任何问题。 但是当我尝试部署这是docker集装箱,它不能连接到我的主机中的rabbitmq。 我试过localhost,主机ip,–add-host,但没有为我工作。 我可以从容器ping主机ip,但telnet挂起。

如何使用Docker for Windows从Windows 10上的DNSparsingWindows容器IP?

从Windows 10主机如何通过主机名访问容器? 例如,如果我有两个容器 容器一 容器-B 我想能够从主机使用此命令,并将其parsing为容器-a的IP地址: ping container-a 我使用Windows容器模式在Windows 10上运行最新的稳定Docker for Windows。 我正在使用默认的“nat”networkingtypes,子网为172.20.16.0/20 在主机上,docker NIC详细信息: Ethernet adapter vEthernet (HNS Internal NIC): Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter #2 DHCP Enabled. . . . . . . . . . […]

Docker群集REPLICAS 0/1

我创build了2个带有容器服务的windows 2016虚拟机,并安装了docker。 我创build了使用Windows服务器核心映像的示例Web服务器,并使用docker文件命名为Web服务器。 如果我运行Docker运行-it webserver,我可以访问正在运行的Web服务器。 所以我开始安装Swarm集群我已经使用自己的图像(networking服务器)创buildnetworking和服务。 但是这些并没有运行它抛出一些错误。 以下是我使用以下命令创build服务和networking的详细信息 # Create an overlay network C:\> docker network create –driver=overlay <NETWORKNAME> docker service create –name site –endpoint-mode dnsrr –publish mode=host,target=8000 –network winnet –constraint 'node.labels.os==windows' webserver C:\Users\Administrator>docker service ps site ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS fctwh0m61vdq site.1 webserver:latest WIN-NGCG1EF8Q2E Running Starting 45 seconds […]

在Windows上更新Docker组成1.8

我刚刚在Windows上安装了Docker社区版,因为我需要在我的机器上本地运行一个hyperledger区块链。 但是,即使它是刚刚安装的docker-compose版本1.14。 我需要docker-compose 1.8来运行hyperledger区块链,根据我从hyperledger入门指南得到的文档。 我search了更新窗口上的docker-compose版本到docker-compose 1.8版的方法,但是我还没有find一个可靠的方法来做到这一点。 有人能教我如何做到这一点?

oracle linux和windows docker容器之间的连通性

我一直在docker技术中寻找一些特定的function,但我没有find任何提及我的问题来解决: 事情是,我需要从某些Oracle Linux服务器向一个SQL SERVER(Windows)收取(导入)数据,但我发现,也许我最好的机会是通过将docker安装到windows的SQL服务器,并通过一些容器(或许是oracle的linux)连接到一个连接,但我仍然无法find任何这样的参考,所以…我想知道如果这是可能的,如果是的话,将是什么性能限制? 。 我也不知道如果桥(OL-> docker容器 – > sqlserver(windows))是可能的,容器可以存储SQL Server中的数据安装在Windows中吗? 感谢您的支持

Windows中的mesos的Spark客户端模式

我在Docker中创build了一个Mesos主服务器和从服务器。 现在我试图在Mesos中以客户端模式运行Spark。 SparkSession spark = SparkSession .builder() .appName("Java Spark in Mesos") .master("mesos://master:5050") .config("spark.executor.uri", "https://d3kbcqa49mib13.cloudfront.net/spark-2.2.0-bin-hadoop2.7.tgz") .getOrCreate(); 我得到的是这个错误 线程“main”中的exceptionjava.lang.UnsatisfiedLinkError:java.library.path中没有mesos 我知道我必须设置MESOS_NATIVE_JAVA_LIBRARY ,但Windows上的这个值应该在哪里下载呢? 在有关Linux和Mac OS X的文档中 ,没有提到Windows。

在Dockerfile中更新Windows软件

通常情况下,Dockerfile使用FROM语句链接在一起。 没有什么时候上游会用最新的安全补丁更新他们的软件包。 我经常在基于Linux的Dockerfile中包含“apt-get update && apt-get -y upgrade”。 什么是基于WindowsServerCore的Dockerfile的等价物?

使用Docker部署WebDeploy .Net 4.5 WebApi项目

我是docker工人,尝试学习.Net 4.5应用程序,在我们的内部部署数据中心上使用Docker Windows Container。 我跟着链接[ http://fluentbytes.com/deploying-asp-net-4-5-to-docker-on-windows/#comment-530794] [1 ] 以下是我的dockerfile获取必要的docker图像一切都很好: # GET BASE IMAGE FROM microsoft/windowsservercore RUN dism /online /enable-feature /all /featurename:iis-webserver /NoRestart # GET IIS IMAGE FROM windowsserveriis RUN dism /online /enable-feature /all /featurename:IIS-ASPNET45 # GET WEB DEPLOY INSTALLED FROM windowsserveriisaspnet RUN mkdir c:\install ADD WebDeploy_2_10_amd64_en-US.msi /install/WebDeploy_2_10_amd64_en-US.msi WORKDIR /install RUN powershell start-Process msiexec.exe -ArgumentList '/ic:\install\WebDeploy_2_10_amd64_en-US.msi […]

Docker – Spring启动应用程序 – Windows上的Hello World

我遵循这个例子: http : //containertutorials.com/docker-compose/spring-boot-app.html但是当我运行Maven(Windows)在最后我得到这个错误: Caused by: com.spotify.docker.client.DockerException: ADD failed: stat /mnt/sda1/var/lib/docker/tmp/docker-builder201282403/gs-spring-boot-docker-0.1.0.jar: no such file or directory 我认为我必须在这里更改Dockerfile,但是如何? VOLUME /tmp ADD gs-spring-boot-docker-0.1.0.jar app.jar 有什么build议? 谢谢