-
Notifications
You must be signed in to change notification settings - Fork 143
tech
feverrun edited this page Nov 18, 2021
·
1 revision
docker run -d \
-e "ZhuanXiang=True" \
-e "Pushmode=6" \
-p "9989:80" \
--name=xuexi \
--shm-size=2g \
--restart=always \
docker.mirror.aliyuncs.com/techxuexi/techxuexi-amd64
# 在前面加 docker.mirror.aliyuncs.com 可以更快速拉取镜像
# 不指定TAG,docker会默认使用 lates
docker-compose.yaml
services:
techxuexi:
image: docker.mirror.aliyuncs.com/techxuexi/techxuexi-amd64
container_name: xuexi
restart: always
shm_size: 2gb
ports:
- 9989:80
environment:
- Pushmode=6
- ZhuanXiang=True
运行 docker-compose up -d 命令, 后台运行
以上两种等效,选择一个即可