docker run -d -p 39901:39901 --name pkc-agent curtinlv/pkc-agent
1、创建文件:docker-compose.yml
文件内容:
version: '3'
services:
pkc-agent:
image: curtinlv/pkc-agent
container_name: pkc-agent
ports:
- "39901:39901"
restart: unless-stopped
2、启动命令:
docker-compose up -d
docker stop pkc-agent
docker rm pkc-agent
docker-compose方式:
docker-compose down
http://ip:39901