docker run -itd \
-v $PWD/config:/config \
--name unicom-task \
--restart always \
dellear/unicom-task
version: "2.2"
services:
unicom-task:
image: dellear/unicom-task
container_name: unicom-task
hostname: unicom-task
restart: always
tty: true
network_mode: bridge #如果网络不正常,可以改成host
volumes:
- ./config:/config