Tag: 窗口10

在Windows 10中构buildDocker时出错

我试图从一个非常简单的项目中构build一个docker镜像,只是为了开始了解docker如何工作和通信。 所以,我创build了一个WebApi项目,只有一个返回200的方法。 项目创build完成后,我创build了dockerfile: # TP5 for technology preview (will not be needed when we go GA) # FROM microsoft/iis FROM microsoft/iis:TP5 MAINTAINER Roman_Hervas # Install Chocolatey (tools to automate commandline compiling) ENV chocolateyUseWindowsCompression='false' RUN @powershell -NoProfile -ExecutionPolicy unrestricted -Command "(iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" # Install build tools RUN powershell add-windowsfeature web-asp-net45 […]

如何在Windows中使用Docker?

我有几个在Win 10 Pro中使用Docker的问题。 我已经安装了Docker,但是我需要帮助来创build使用php开发的环境。 如果我的想法是错误的,请纠正它。 我需要一个任何Linux操作系统作为图像库,我需要PHP,Nginx的,混帐,composer php,MySQL等。我将使用此图像来创build我的项目的容器。 我可以在哪里下载这个图像/configuration? 或者我不需要Linux操作系统?

Norton要改变什么才能允许Docker共享驱动器D.

我在Windows10 Pro上使用Docker,我试图使用Docker设置UI来为Docker提供访问驱动器D的权限。 当我这样做,我得到一个错误… Firewall detected. A firewall is blocking file Sharing between Windows and the containers. See documentation for more info. …链接到: https : //docs.docker.com/docker-for-windows/#firewall-rules-for-shared-drives 我使用的是Norton 360 Premier。 诺顿需要如何更改以及如何更改以允许Docker使用驱动器D?

当networking更换Docker for Windows时,无法从主机连接Docker

当networking/ ip从办公室转移到家时,我无法连接到docker集装箱。 但是和localhost或127.0.0.1一样 我正在连接到VPN以连接到数据库。 root@1c970ed5cd64:/etc# curl http://localhost:8090/admin/health_check/all {“health”:“passed”}root@1c970ed5cd64:/etc# curl http://192.168.0.103:8090/admin/health_check/all curl: (7) Failed to connect to 192.168.0.103 port 8090: Connection refused 当我再次安装docker,一切正常。 我创build了docker-machine,外部虚拟交换机指向wifi,然后用主机IP运行容器。 相同的工作在不同的机器上。 下面我没有看到DOCKER_HOST IP当我检查networking PS C:\Users\KH1046> docker network inspect -v 6fad6cc07d43 [ { "Name": "bridge", "Id": "6fad6cc07d43f576ca4921559346a4919ea6ffd8172726adccb31b4ffaa23acd", "Created": "2017-08-12T18:07:33.2239814Z", "Scope": "local", "Driver": "bridge", "EnableIPv6": false, "IPAM": { "Driver": "default", "Options": null, "Config": [ […]

networking更改时无法连接到Docker主机

这里我有两个例子。 我的办公室地址将会像10.10.33.XX那样每天都在变化而家庭IP地址将会是192.168.0.100/101/102 所以我想为Windows 10上的两种情况设置单个静态IP 请build议一种方法来处理这个问题 谢谢,Kusuma

docker-compose in windows:Unsupported config option for services:'web'

我试图设置我的第一个泊坞窗撰写完整的应用程序,我创build了一个依赖于mongodb的弹簧启动应用程序。 所以,我在Dockerfile的相同级别的代码的根目录下创build了一个docker-compose.yml文件。 当我使用gradlew build buildDocker时创build图像进行得很好,图像被创build,我可以运行它(但它失败,因为它无法打开MongoDB连接)。 所以,我这样创build了docker-compose.yml: services: web: build: . ports: – "8082:8082" links: – mongo mongo: environment: spring.data.mongodb.host: localhost spring.data.mongodb.port: 27017 spring.data.mongodb.database: Transactions spring.data.mongodb.username: someUsername spring.data.mongodb.password: somePassword image: "mongo:3.4" 但是,当我执行docker-compose up命令时,我得到这个错误: Unsupported config option for services: 'web' 我正在使用Windows 10作为操作系统,并且docker-compose version 1.14.0, build c7bdf9e3是docker-compose version 1.14.0, build c7bdf9e3 问题:有谁知道我需要如何设置docker-compose.yml文件才能收到错误信息?

OSError:在Docker容器中使用python运行selenium时

我最近学习了Docker的基础知识,以及如何创build和运行图像。 我正在尝试创build一个python脚本的图像,这个脚本会将一些数据页面抓取并上传到服务器。 我使用Selenium,Chromium和Windows chromedriver。 我试图在我的Windows机器上构build映像,并能够将它部署在一堆Linux / Windows服务器上。 目前,我只是在同一个Windows机器上构build和运行,直到我运行,但是我仍然得到相同的错误,即使脚本直接在机器上运行。 这是错误的: Traceback (most recent call last): File "my-app.py", line 796, in <module> startScraper(); File "my-app.py", line 92, in startScraper browser = webdriver.Chrome(chrome_options = options, executable_path = path_to_chromedriver); File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 62, in __init__ self.service.start() File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 74, in start stdout=self.log_file, stderr=self.log_file) File "/usr/local/lib/python3.6/subprocess.py", line 707, in […]

运行部署后,Meteor-up终止

我不知道为什么我得到这个错误。 meteor是一个辉煌的。 每当我运行这个deploy命令,它就会一次又一次地终止。 难道是服务器已经设置超时完成上传文件。 请帮忙。 C:\Programs\contract\schoolapps\.deploy>mup.cmd deploy –cached-build ┌─────────────────────────────────────┐ │ │ │ update available 1.3.2 => 1.3.3 │ │ To update, run npm i -g mup │ │ │ └─────────────────────────────────────┘ Not building app. Using build from previous deploy at C:\Users\Kehinde\AppData\Local\Temp\mup-meteor-58e876b4-e682-4ecf-9d41-168fa46a5b19 Started TaskList: Pushing Meteor App [xxx.xxx.xx.xx] – Pushing Meteor App Bundle to The Server [=============== […]

Windows 10 Docker Sitespeed.io错误:“$(pwd)”包含本地卷名称的无效字符

我对docker很新,所以这可能是一个简单的修复。 我试图让一个Sitepeed.io的实例启动并运行,通过在默认安装Docker的Windows 10计算机上按照他们的文档 – 不使用Windows容器,C是共享的。安装步骤: https:// www。 sitespeed.io/documentation/sitespeed.io/installation/#windows-1 第1步工作正常。 C:\ Users \ Vicky> docker pull sitespeedio / sitespeed.io 步骤2没有。 C:\ Users \ Vicky> docker run –rm -v“$(pwd)”:/ sitespeed.io sitespeedio / sitespeed.io https://www.sitespeed.io -b firefox 这导致我正在寻找帮助的错误。 特别: C:\WINDOWS\system32>docker run –rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io https://www.sitespeed.io -b firefox docker: Error response from daemon: create $(pwd): "$(pwd)" includes invalid […]

不可破解的com.docker.db.exe

我在Windows 10 Pro上运行Docker。 当我启动Docker时,它告诉我有一个更新,所以我告诉它安装并重新启动(Docker和机器)然后去吃午餐。 当我回到更新失败,出现以下错误: Access to the path 'C:\Program Files\Docker\Docker\resources\com.docker.db.exe' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 […]