docker-配置与运行

参考:
Docker安装并配置阿里云镜像加速

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:~# 
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值