欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

在Windows系統(tǒng)下安裝docker窗口的配置過(guò)程

 更新時(shí)間:2016年10月17日 17:18:55   投稿:daisy  
相信大家都知道Docker有很多種安裝的選擇,其中支持最好的是Ubuntu系統(tǒng)。而且docker如果想在windows上運(yùn)行必須借助docker-machine,這篇文章將給大家詳細(xì)的介紹在Windows系統(tǒng)上安裝docker窗口的配置過(guò)程,有需要的朋友們可以參考借鑒。

前言

目前對(duì)docker支持最好的是Ubuntu系統(tǒng),docker不支持在windows上運(yùn)行,必須借助docker-machine。docker提供了toolbox用于在windows和mac平臺(tái)安裝docker。

工具箱包括:

      docker machine

      Docker Engine

      Kitematic

      docker命令行運(yùn)行環(huán)境

      Oracle VM VirtualBox

安裝之前需要檢查BIOS中虛擬化的設(shè)置是否已打開(kāi),參考此頁(yè)面

1、下載安裝文件

https://www.docker.com/toolbox

2、雙擊安裝文件進(jìn)行安裝

3、運(yùn)行docker run hello-world

運(yùn)行時(shí)出現(xiàn)下面的問(wèn)題

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 default
docker-machine restart default

顯示環(huán)境變量:

 $ 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)"

設(shè)置環(huán)境變量:

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

再次運(yùn)行:

$ docker run hello-world
Unable to find image 'hello-world:latest' locally
Pulling repository docker.io/library/hello-world
af340544ed62: Pulling image (latest) from docker.io/library/hello-world
af340544ed62: Pulling image (latest) from docker.io/library/hello-world, endpoint: https://registry-1.docker.io/v1/
af340544ed62: Pulling dependent layers
535020c3e8ad: Pulling metadata
535020c3e8ad: Pulling fs layer
535020c3e8ad: Download complete
af340544ed62: Pulling metadata
af340544ed62: Pulling fs layer
af340544ed62: Download complete
af340544ed62: Download complete
Status: Downloaded newer image for hello-world:latest
Hello 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 bash
Share images, automate workflows, and more with a free Docker Hub account:
 https://hub.docker.com
For more examples and ideas, visit:
 https://docs.docker.com/userguide/

配置加速器:

docker-machine ssh default
sudo sed -i "s|EXTRA_ARGS='|EXTRA_ARGS='--registry-mirror=http://efa65984.m.daocloud.io |g" /var/lib/boot2docker/profile
exit
docker-machine restart default

注意

docker用戶的密碼是tcuser

可用于winscp傳輸文件

總結(jié)

以上就是在Windows系統(tǒng)上安裝docker窗口的配置過(guò)程,文中給出了詳細(xì)的步驟介紹,希望對(duì)大家的學(xué)習(xí)或者工作帶來(lái)一定的幫助,如果有疑問(wèn)大家可以留言交流。

相關(guān)文章

  • IDEA 集成 docker 實(shí)現(xiàn)遠(yuǎn)程部署的詳細(xì)步驟

    IDEA 集成 docker 實(shí)現(xiàn)遠(yuǎn)程部署的詳細(xì)步驟

    使用命令 vim /usr/lib/systemd/system/docker.service登錄docker所在的遠(yuǎn)程服務(wù)器,本文重點(diǎn)給大家介紹IDEA 集成 docker 實(shí)現(xiàn)遠(yuǎn)程部署的詳細(xì)步驟,需要的朋友參考下吧
    2021-07-07
  • Docker掛載/etc/timezone報(bào)錯(cuò)問(wèn)題

    Docker掛載/etc/timezone報(bào)錯(cuò)問(wèn)題

    這篇文章主要介紹了Docker掛載/etc/timezone報(bào)錯(cuò)問(wèn)題,具有很好的參考價(jià)值,希望對(duì)大家有所幫助,如有錯(cuò)誤或未考慮完全的地方,望不吝賜教
    2023-11-11
  • 詳解Docker掛載本地目錄及實(shí)現(xiàn)文件共享的方法

    詳解Docker掛載本地目錄及實(shí)現(xiàn)文件共享的方法

    本篇文章主要介紹了詳解Docker掛載本地目錄及實(shí)現(xiàn)文件共享的方法,小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧
    2017-12-12
  • Docker 多主機(jī)網(wǎng)絡(luò)通信詳細(xì)介紹

    Docker 多主機(jī)網(wǎng)絡(luò)通信詳細(xì)介紹

    這篇文章主要介紹了Docker 多主機(jī)網(wǎng)絡(luò)通信詳細(xì)介紹的相關(guān)資料,需要的朋友可以參考下
    2016-10-10
  • docker 命令報(bào)異常permission denied的解決方案

    docker 命令報(bào)異常permission denied的解決方案

    這篇文章主要介紹了docker 命令報(bào)異常permission denied的解決方案,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧
    2021-03-03
  • 使用Dockerfile.dockerignore提升Docker鏡像構(gòu)建速度

    使用Dockerfile.dockerignore提升Docker鏡像構(gòu)建速度

    這篇文章主要為大家介紹了使用Dockerfile.dockerignore提升Docker鏡像構(gòu)建速度,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪<BR>
    2023-10-10
  • 基于docker部署skywalking實(shí)現(xiàn)全鏈路監(jiān)控功能

    基于docker部署skywalking實(shí)現(xiàn)全鏈路監(jiān)控功能

    這篇文章主要介紹了基于docker部署skywalking實(shí)現(xiàn)全鏈路監(jiān)控,skywalking提供了在很多不同的場(chǎng)景下用于觀察和監(jiān)控分布式系統(tǒng)的方式,文中給大家介紹如何快速部署skywalking全鏈路監(jiān)控,感興趣的朋友一起看看吧
    2022-03-03
  • 查看Docker容器的信息的方法實(shí)現(xiàn)

    查看Docker容器的信息的方法實(shí)現(xiàn)

    對(duì)于運(yùn)行在Docker環(huán)境的容器,有時(shí)我們想查詢它們的一些基本信息,本文主要介紹了查看Docker容器的信息的方法實(shí)現(xiàn),文中根據(jù)實(shí)例編碼詳細(xì)介紹的十分詳盡,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2022-03-03
  • 在Docker容器中部署MSSQL

    在Docker容器中部署MSSQL

    這篇文章介紹了在Docker容器中部署MSSQL的方法,對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧
    2022-04-04
  • Docker?配置容器固定IP的方法

    Docker?配置容器固定IP的方法

    這篇文章主要介紹了Docker?配置容器固定IP,下面使用docker自帶的network實(shí)現(xiàn)固定ip分配,并且重啟不會(huì)消失,通過(guò)綁定步驟給大家介紹的非常詳細(xì),需要的朋友參考下吧
    2022-04-04

最新評(píng)論