$ sudo docker run --name=ubuntu -it ubuntu
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
5b7339215d1d: Downloading 25.17MB/25.17MB
14ca88e9f672: Download complete
a31c3b1caad4: Download complete
b054a26005b7: Download complete
docker: local error: tls: bad record MAC.
解决方法:
修改docker 源 sudo vim /lib/systemd/system/docker.service
将原来的源注释掉,更换为阿里源
#ExecStart=/usr/bin/dockerd -H fd://
ExecStart=/usr/bin/dockerd --registry-mirror=https://jxus37ac.mirror.aliyuncs.com
重载配置
systemctl daemon-reload
重启配置
service docker restart
检查docker的运行状态
systemctl status docker
运行第一个docker
docker run ubuntu:15.10 /bin/echo "hello Docker"