Ubuntu/Debian安装Docker教程

#安装相关
sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common

#调整国内源
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository \
   "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

sudo apt-get update

#安装  ce是社区版
sudo apt-get install docker-ce docker-ce-cli containerd.io

#查看安装版本
docker version

#详细信息
sudo docker info

#检测运行
sudo docker run hello-world


docker run --privileged --pid=host --net=host -p 8081:8081 \
  -e SKYDIVE_ANALYZERS=10.117.63.79:8082 \
  -v /var/run/docker.sock:/var/run/docker.sock skydive/skydive agent