利用docker部署transmission

自动适配OS

curl -sSL https://get.daocloud.io/docker | sh
systemctl enable docker
systemctl start docker

#拉取镜像
docker pull hub.c.163.com/public/centos:7.2
#创建容器
docker run --privileged --name transmission --hostname transmission --restart=always -dt --publish 9091:9091 -v /etc/localtime:/etc/localtime:ro -v /mnt/movies/PT:/var/lib/transmission/Downloads hub.c.163.com/public/centos:7.2 /sbin/init
#进入容器
#transmission下载目录:/mnt/movies/PT
docker exec -ti transmission bash

2.1 安装&配置transmission

chown -R transmission:transmission /var/lib/transmission/Downloads/

2.2 收尾

#导出容器
docker export transmission > transmission.tar
#导入镜像
docker load < transmission.tar

  • virtualization/docker/利用docker部署transmission.txt
  • 最后更改: 2019/04/16 18:31
  • (外部编辑)