ArchLinux 安装 Docker

安装

1
sudo pacman -S docker

start server

1
systemctl restart docker

镜像

1
2
3
docker pull ubuntu:18.04
docker pull centos # latest
dicker pull centos:6

运行

1
sudo docker run -i -t centos /bin/bash
  • -it, -i:交互式操作, -t 终端