1. 配置
sudo apt-get install docker qemu-user-static binfmt-support
2. 启动
sudo service docker start
3. 运行hello-world
docker pull hello-world
docker run hello-world
这是docker官方提供的一个镜像。成功运行说明docker环境没问题了。
如果没有拉下来就配置镜像加速,参考文章上面的参考资料!
欣赏下输出
root@linaro-alip:~# docker run hello-world
[ 22.606085] device vethefaba78 entered promiscuous mode
[ 22.612651] IPv6: ADDRCONF(NETDEV_UP): vethefaba78: link is not ready
[ 22.852500] IPVS: Creating netns size=1592 id=2
[ 23.346273] eth0: renamed from veth9c2cfb2
[ 23.370789] IPv6: ADDRCONF(NETDEV_CHANGE): vethefaba78: link becomes ready
[ 23.377960] docker0: port 1(vethefaba78) entered forwarding state
[ 23.384263] docker0: port 1(vethefaba78) entered forwarding state
[ 23.391766] IPv6: ADDRCONF(NETDEV_CHANGE): docker0: link becomes ready
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(arm64v8)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
[ 23.792766] docker0: port 1(vethefaba78) entered disabled state
[ 23.808632] veth9c2cfb2: renamed from eth0
[ 23.854142] docker0: port 1(vethefaba78) entered disabled state
[ 23.862859] device vethefaba78 left promiscuous mode
[ 23.868018] docker0: port 1(vethefaba78) entered disabled state
root@linaro-alip:~#