Docker入门实践

Installation

# Windows
cinst docker -y
# Linux
pacman -Sy docker
apt-get install docker -y

Initicial

docker pull debian

FAQ: An error occurred trying to connect: Post …..

问题描述:

$ docker pull debian
Using default tag: latest
An error occurred trying to connect: Post http://localhost:2375/v1.21/images/create?fromImage=debian%3Alatest: dial tcp 127.0.0.1:2375: ConnectEx tcp: No connection could be made because the target machine actively refused it.

问题原因:系统无虚拟机服务启动 解决方案:

# 停止并删除boot2docker虚拟机
boot2docker stop
boot2docker destroy
# 重新创建boot2docker虚拟机并启动
boot2docker init
boot2docker up
docker version
微信扫一扫交流

作者:ryanemax
微信关注:ryanemax (刘雨飏)
本文出处:https://romantic-hoover-f991f1.netlify.com/cookbook/devops/dockerstart/
授权协议: CC BY-SA 4.0