arm-docker-ubuntu安装


1,安装包,允许 apt 命令 HTTPS 访问 Docker 源。

apt install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common

2.添加 Docker 官方的 GPG

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -

3.将 Docker 的源添加到 /etc/apt/sources.list

sudo echo "deb https://download.docker.com/linux/ubuntu zesty edge" > /etc/apt/sources.list.d/docker.list

4.安装

apt-get update && apt-get install docker-ce

或

sudo apt update && sudo apt install docker-ce

5.查看版本

docker version

// 输出结果
root@localhost:/opt# docker version
Client:
 Version:       18.01.0-ce
 API version:   1.35
 Go version:    go1.9.2
 Git commit:    03596f5
 Built: Wed Jan 10 20:16:37 2018
 OS/Arch:       linux/arm
 Experimental:  false
 Orchestrator:  swarm
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

6.启动docker

service docker start

// 输出结果
root@localhost:/opt# service docker start
 * Starting Docker: docker