一、docker
docker pull halohub/halo:1.5.4
docker run -it -d --name halo -p 8090:8090 -v ~/.halo:/root/.halo --restart=unless-stopped halohub/halo:1.5.4
二、docker-compose
version: '3' services: halohub: hostname: halohub image: halohub/halo:latest container_name: halohub # 指定容器名称,如果不设置此参数,则由系统自动生成 #restart: always # 设置容器自启模式 volumes: - "~/.halo:/root/.halo" # network_mode: "host" ports: - "8090:8090"
标签:1.5,8090,部署,halohub,restart,docker,halo From: https://www.cnblogs.com/raorao1994/p/17861319.html