Docker
安装 Docker
curl -fsSL https://get.docker.com | bash
# 安装 docker-compose
# curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# chmod a+x /usr/local/bin/docker-compose
# 启动 docker
systemctl start docker
# 启动 docker
# service docker start
# 开机自启
systemctl enable docker.service
# 查看 docker 状态
systemctl status docker.service
Docker 运行命令
docker run -d \
-v /proc:/proc \
--privileged=true \
--restart unless-stopped \
--network=host \
--name=serverbee-web \
zingerbee/serverbee-web -p 9527
将 `9527` 替换为任何你想要的端口
查看容器日志
docker logs serverbee-web