网络科技

    今日:733| 主题:244858
收藏本版
互联网、科技极客的综合动态。

[其他] Docker can run on windows 10, without VMs (stable)

[复制链接]
哼着哼着就走调了 发表于 2016-10-18 18:58:07
301 10

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
Getting Started with Docker for Windows

  Welcome to Docker for Windows!
  Please read through these topics on how to get started. To    give us your feedbackon your experience with the app and report bugs or problems, log in to our    Docker for Windows forum.  
  Already have Docker for Windows?If you already have Docker for Windows installed, and are ready to get started, skip over to the    Getting Started with Dockertutorial.  
  Download Docker for Windows

  If you have not already done so, please install Docker for Windows. You can download installers from the stable or beta channel. For more about stable and beta channels, see theFAQs.  
            Stable channel      Beta channel              This installer is fully baked and tested, and comes with the latest GA version of Docker Engine.        
This is the best channel to use if you want a reliable platform to work with.        
These releases follow a version schedule with a longer lead time than the betas, synched with Docker Engine releases and hotfixes.            This installer offers cutting edge features and comes with the experimental version of Docker Engine, which is described in the        Docker Experimental Features READMEon GitHub.        
This is the best channel to use if you want to experiment with features we are working on as they become available, and can weather some instability and bugs. This channel is a continuation of the beta program, where you can provide feedback as the apps evolve. Releases are typically more frequent than for stable, often one or more per month.                            Get Docker for Windows (stable)        
                  Download checksum: InstallDocker.msi SHA256                            Get Docker for Windows (beta)        
                  Download checksum: InstallDocker.msi SHA256                          Important Notes:

   
          
  •         Docker for Windows requires 64bit Windows 10 Pro, Enterprise and Education (1511 November update, Build 10586 or later) and Microsoft Hyper-V. Please see          What to know before you installfor a full list of prerequisites.        
          
  •         You can switch between beta and stable versions, but _you must have only one app installed at a time_.        Also, you will need to save images and export containers you want to keep before uninstalling the current version before installing another. For more about this, see the          FAQs about beta and stable channels.        
       
    What to know before you install

  
       
  •       README FIRST for Docker Toolbox and Docker Machine users: Docker for Windows requires Microsoft Hyper-V to run. After Hyper-V is enabled, VirtualBox will no longer work, but any VirtualBox VM images will remain. VirtualBox VMs created with        docker-machine(including the        defaultone typically created during Toolbox install) will no longer start. These VMs cannot be used side-by-side with Docker for Windows. However, you can still use        docker-machineto manage remote VMs.      
       
  •       The current version of Docker for Windows runs on 64bit Windows 10 Pro, Enterprise and Education (1511 November update, Build 10586 or later). In the future we will support more versions of Windows 10.
       
  •       Containers and images created with Docker for Windows are shared between all user accounts on machines where it is installed. This is because all Windows accounts will use the same VM to build and run containers. In the future, Docker for Windows will better isolate user content.
       
  •       The Hyper-V package must be enabled for Docker for Windows to work. The Docker for Windows installer will enable it for you, if needed. (This requires a reboot).
          Note: If your system does not satisfy these requirements, you can installDocker Toolbox, which uses Oracle Virtual Box instead of Hyper-V.      
       
  •       Virtualization must be enabled. Typically, virtualization is enabled by default. (Note that this is different from having Hyper-V enabled.) For more detail see        Virtualization must be enabledin Troubleshooting.      
       
  •       What the install includes: The installation providesDocker Engine, Docker CLI client,Docker Compose, andDocker Machine.      
      
  Step 1. Install Docker for Windows

  
       
  •       Double-click        InstallDocker.msito run the installer.      
          If you haven’t already downloaded the installer (        InstallDocker.msi), you can get it                  here        . It typically downloads to your        Downloads folder, or you can run it from the recent downloads bar at the bottom of your web browser.      
       
  •       Follow the install wizard to accept the license, authorize the installer, and proceed with the install.
          You will be asked to authorize        Docker.appwith your system password during the install process. Privileged access is needed to install networking components, links to the Docker apps, and manage the Hyper-V VMs.      
       
  •       Click        Finishon the setup complete dialog to launch Docker.      
                  
    Docker can run on windows 10, without VMs (stable)-1 (experience,download,Download,Windows,windows)
          
      
  Step 2. Start Docker for Windows

  When the installation finishes, Docker starts automatically.
  The whale in the status bar indicates that Docker is running, and accessible from a terminal.
  If you just installed the app, you also get a popup success message with suggested next steps, and a link to this documentation.

Docker can run on windows 10, without VMs (stable)-2 (experience,download,Download,Windows,windows)
  
  When initialization is complete, select    About Dockerfrom the notification area icon to verify that you have the latest version.  
  Congratulations! You are up and running with Docker for Windows.
  Step 3. Check versions of Docker Engine, Compose, and Machine

  Start your favorite shell (    cmd.exe, PowerShell, or other) to check your versions of    dockerand    docker-compose, and verify the installation.  
  [code]PS C:\Users\samstevens> docker --version
  Docker version 1.12.0, build 8eab29e, experimental

  PS C:\Users\samstevens> docker-compose --version
  docker-compose version 1.8.0, build d988a55

  PS C:\Users\samstevens> docker-machine --version
  docker-machine version 0.8.0, build b85aac1[/code]  Step 4. Explore the application and run examples

  The next few steps take you through some examples. These are just suggestions for ways to experiment with Docker on your system, check version information, and make sure    dockercommands are working properly.  
  
       
  •       Open a shell (        cmd.exe, PowerShell, or other).      
       
  •       Run some Docker commands, such as        docker ps,        docker version, and        docker info.      
          Here is the output of        docker psrun in a powershell. (In this example, no containers are running yet.)      
          [code]PS C:\Users\samstevens> docker ps
       CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES[/code]      Here is an example of command output for        docker version.      
          [code]PS C:\Users\Vicky> docker version
       Client:
       Version:      1.12.0
       API version:  1.24
       Go version:   go1.6.3
       Git commit:   8eab29e
       Built:        Thu Jul 28 21:04:48 2016
       OS/Arch:      windows/amd64
       Experimental: true

       Server:
       Version:      1.12.0
       API version:  1.24
       Go version:   go1.6.3
       Git commit:   8eab29e
       Built:        Thu Jul 28 21:04:48 2016
       OS/Arch:      linux/amd64
       Experimental: true[/code]      Here is an example of command output for        docker info.      
          [code]PS C:\Users\Vicky> docker info
       Containers: 0
       Running: 0
       Paused: 0
       Stopped: 0
       Images: 0
       Server Version: 1.12.0
       Storage Driver: aufs
       Root Dir: /var/lib/docker/aufs
       Backing Filesystem: extfs
       Dirs: 0
       Dirperm1 Supported: true
       Logging Driver: json-file
       Cgroup Driver: cgroupfs
       Plugins:
       Volume: local
       Network: host bridge null overlay
       Swarm: inactive
       Runtimes: runc
       Default Runtime: runc
       Security Options: seccomp
       Kernel Version: 4.4.16-moby
       Operating System: Alpine Linux v3.4
       OSType: linux
       Architecture: x86_64
       CPUs: 2
       Total Memory: 1.95 GiB
       Name: moby
       ID: BG6O:2VMH:OLNV:DDLF:SCSV:URRH:BW6M:INBW:OLAC:J7PX:XZVL:ADNB
       Docker Root Dir: /var/lib/docker
       Debug Mode (client): false
       Debug Mode (server): false
       Registry: https://index.docker.io/v1/
       Experimental: true
       Insecure Registries:
       127.0.0.0/8[/code]      Note:The outputs above are examples. Your output for commands like        docker versionand        docker infowill vary depending on your product versions (e.g., as you install newer versions).      
       
  •       Run        docker run hello-worldto test pulling an image from Docker Hub and starting a container.      
          [code]PS C:\Users\samstevens> docker run hello-world

      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.[/code]   
  •       Try something more ambitious, and run an Ubuntu container in a Bash shell.
          [code]$ docker run -it ubuntu bash

       PS C:\Users\samstevens> docker run -it ubuntu bash
       Unable to find image 'ubuntu:latest' locally
       latest: Pulling from library/ubuntu
       5a132a7e7af1: Pull complete
       fd2731e4c50c: Pull complete
       28a2f68d1120: Pull complete
       a3ed95caeb02: Pull complete
       Digest: sha256:4e85ebe01d056b43955250bbac22bdb8734271122e3c78d21e55ee235fc6802d
       Status: Downloaded newer image for ubuntu:latest[/code]      Type        exitto stop the container and close the Bash shell.      
       
  •       For the pièce de résistance, start a Dockerized webserver with this command:
          [code]docker run -d -p 80:80 --name webserver nginx[/code]      This will download the        nginxcontainer image and start it. Here is the output of running this command in a powershell.      
          [code]PS C:\Users\samstevens> docker run -d -p 80:80 --name webserver nginx
       Unable to find image 'nginx:latest' locally
       latest: Pulling from library/nginx

       fdd5d7827f33: Pull complete
       a3ed95caeb02: Pull complete
       716f7a5f3082: Pull complete
       7b10f03a0309: Pull complete
       Digest: sha256:f6a001272d5d324c4c9f3f183e1b69e9e0ff12debeb7a092730d638c33e0de3e
       Status: Downloaded newer image for nginx:latest
       dfe13c68b3b86f01951af617df02be4897184cbf7a8b4d5caf1c3c5bd3fc267f[/code]   
  •       Point your web browser at        http://localhostto display the start page.      
          (Since you specified the default HTTP port, it isn’t necessary to append        :80at the end of the URL.)
更多图片 小图 大图
组图打开中,请稍候......
友荐云推荐




上一篇:速途研究院:2016年Q2移动音乐市场分析报告
下一篇:Android业务组件化开发实践 - 张涛
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

andyzhudandan 发表于 2016-10-18 19:38:25
站位支持
回复 支持 反对

使用道具 举报

刘星烁 发表于 2016-10-18 19:46:58
吾生也有涯,而吃也无涯.
回复 支持 反对

使用道具 举报

/aiq档髑ge 发表于 2016-10-18 20:10:09
打酱油的人拉,回复下赚取积分
回复 支持 反对

使用道具 举报

小小蜗牛 发表于 2016-10-19 02:09:57
据说,回这个帖子会升官发财,我来试一下!
回复 支持 反对

使用道具 举报

sffr6582 发表于 2016-10-19 02:30:24
顶起哼着哼着就走调了
回复 支持 反对

使用道具 举报

lk979301071 发表于 2016-10-19 07:24:13
哼着哼着就走调了是男的还是女的?
回复 支持 反对

使用道具 举报

j2富凯 发表于 2016-10-19 07:48:20
楼主,j2富凯在到处找您呢!
回复 支持 反对

使用道具 举报

mewu5799 发表于 2016-10-20 02:17:55
楼主,笑一个,萌萌哒!
回复 支持 反对

使用道具 举报

chanchiukwan 发表于 2016-10-20 11:10:51
当爱情不在的时候,请对他说声祝福,毕竟,曾经爱过。
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读

扫码访问 @iTTTTT瑞翔 的微博
回页顶回复上一篇下一篇回列表手机版
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )|网站地图 酷辣虫

© 2001-2016 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表