环境
型号: Raspberry Pi Model 3B
系统: Raspbian GNU/Linux 8 (jessie)
使用安装脚本 Docker官方提供了get docker安装脚本,由于Docker官网在国内访问速度十分缓慢,为保证顺利安装故使用daocloud提供的脚本进行安装 在终端输入以下代码,等待脚本执行完成
$ sudo curl -sSL https://get.daocloud.io/docker | sh
检测是否安装成功
$ sudo docker -v
Docker version 18.05.0-ce, build f150324
启动Docker服务
$ sudo systemctl start docker
运行容器
$ sudo docker run hello-world
Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 61ddb93a5f93: Pull complete Digest: sha256:f5233545e43561214ca4891fd1157e1c3c563316ed8e237750d59bde73361e77 Status: Downloaded newer image for hello-world:latest
Q.E.D.
Comments | 4 条评论