How can I run Docker in a AWS Windows Server environment?

前端 未结 3 1451
星月不相逢
星月不相逢 2021-02-05 14:00

Thing I\'d tried:

Toolbox on Windows Server 2012 R2. Disabled Hyper-V to allow virtualbox. I cannot enable virtualization as it\'s on the physical bios.

Installed

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-05 14:38

    It is possible to run docker on windows. Run the following command to set it up.

    docker-machine create --driver amazonec2 aws01
    

    What this command does is create a new EC2 linux instance, and connects up docker to that linux instance. When docker commands are run on your windows instance the docker commands actually are sent to the linux instance, executed, and the results are returned to the windows EC2 instance.

    Here's Docker's documentation on it. I hope this helps. https://docs.docker.com/machine/drivers/aws/#aws-credential-file

提交回复
热议问题