一、安裝Ubuntu

Windows 安裝 Ubuntu

下載最新LTS版本
二、安裝Docker for windows

安裝Docker for windows
執(zhí)行提示:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

勾選關(guān)鍵設(shè)置
三、安裝Docker
Install Docker Engine on Ubuntu?https://docs.docker.com/engine/install/ubuntu/
四、關(guān)鍵命令
執(zhí)行關(guān)鍵命令:echo "export DOCKER_HOST=tcp://localhost:2375" >> ~/.bashrc && source ~/.bashrc

Docker命令執(zhí)行成功

下載Hello-world

Docker執(zhí)行正常