参考安装Alpine Linux,安装迷你版Linux
/etc/apk/repositorie
去掉 Community 那个源的注释
apk update
apk add docker
rc-update add docker boot
service docker start
*选择安装Docker Compose
apk add py-pip
apk add python-dev python3-dev libffi-dev openssl-dev gcc libc-dev make
pip install docker-compose
安装portainer
docker volume create portainer_data
docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
文章评论