国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Windows > 正文

在Windows系統下安裝docker窗口的配置過程

2019-11-02 16:17:18
字體:
來源:轉載
供稿:網友

前言

目前對docker支持最好的是Ubuntu系統,docker不支持在windows上運行,必須借助docker-machine。docker提供了toolbox用于在windows和mac平臺安裝docker。

工具箱包括:

      docker machine

      Docker Engine

      Kitematic

      docker命令行運行環境

      Oracle VM VirtualBox

安裝之前需要檢查BIOS中虛擬化的設置是否已打開,參考此頁面

1、下載安裝文件

https://www.docker.com/toolbox

2、雙擊安裝文件進行安裝

3、運行docker run hello-world

運行時出現下面的問題

Post http://127.0.0.1:2375/v1.20/containers/create: dial tcp 127.0.0.1:2375: ConnectEx tcp: No connection could be made because the target machine actively refused it.. * Are you trying to connect to a TLS-enabled daemon without TLS? * Is your docker daemon up and running?

如下解決:

docker-machine regenerate-certs defaultdocker-machine restart default

顯示環境變量:

 $ docker-machine env default --shell sh  export DOCKER_TLS_VERIFY="1"  export DOCKER_HOST="tcp://192.168.99.100:2376"  export DOCKER_CERT_PATH="C:/Users/apex/.docker/machine/machines/default"  export DOCKER_MACHINE_NAME="default"  # Run this command to configure your shell:  # eval "$(E:/04_Program Files/docker_toolbox/Docker Toolbox/docker-machine.exe env default)"

設置環境變量:

eval "$(docker-machine env default --shell sh)"

再次運行:

$ docker run hello-worldUnable to find image 'hello-world:latest' locallyPulling repository docker.io/library/hello-worldaf340544ed62: Pulling image (latest) from docker.io/library/hello-worldaf340544ed62: Pulling image (latest) from docker.io/library/hello-world, endpoint: https://registry-1.docker.io/v1/af340544ed62: Pulling dependent layers535020c3e8ad: Pulling metadata535020c3e8ad: Pulling fs layer535020c3e8ad: Download completeaf340544ed62: Pulling metadataaf340544ed62: Pulling fs layeraf340544ed62: Download completeaf340544ed62: Download completeStatus: Downloaded newer image for hello-world:latestHello from Docker.This message shows that your installation appears to be working correctly.To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bashShare images, automate workflows, and more with a free Docker Hub account: https://hub.docker.comFor more examples and ideas, visit: https://docs.docker.com/userguide/
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 德阳市| 礼泉县| 巴林右旗| 忻城县| 邳州市| 宜兴市| 和平区| 亚东县| 宜昌市| 新竹县| 大英县| 涞水县| 龙海市| 海南省| 广元市| 仁寿县| 府谷县| 五指山市| 洮南市| 绍兴县| 兴城市| 双柏县| 博罗县| 井冈山市| 河北省| 东台市| 革吉县| 娱乐| 大城县| 仲巴县| 碌曲县| 南通市| 木兰县| 南靖县| 松阳县| 敖汉旗| 杭州市| 大厂| 景宁| 高安市| 天峻县|