docker 安装SvnServer
docker 安装SvnServer
拉取镜像
docker pull elleflorio/svn-server
创建数据路径
mkdir /home/docker/svn/config -p # 配置路径
mkdir /home/docker/svn/data -p # 数据路径
docker run -d -p 7777:80 -p 3690:3690 -v /home/docker/svn/data/:/home/svn -v /home/docker/svn/config/:/etc/subversion/ --name svn-server elleflorio/svn-server
docker exec -t svn-server htpasswd -c -b /etc/subversion/passwd root 123456 # 添加账号 用户root 密码123456
touch /home/docker/svn/config/subversion-access-control
chmod -R a+w /home/docker/svn/config
chmod -R a+w /home/docker/svn/data
/etc/subversion/subversion-access-control
/etc/subversion/passwd
/home/svn
/usr/bin/svn
/usr/bin/svnadmin