Alpine Linux系统安装Docker以及Docker Compose环境

安装社区存储库:

> echo “http://dl-cdn.alpinelinux.org/alpine/latest-stable/community” >>/etc/apk/repositories

安装Docker:

> apk update;apk add docker

设置开机自启:

> rc-update add docker boot

启动Docker:

> service docker start

查看Docker版本:

> docker -v

安装Docker Compose:

> apk add py-pip;pip install docker-compose

发表回复