docker
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sudo yum makecache fast
sudo yum -y install docker-ce
sudo service docker start
sudo systemctl enable docker.service
sudo docker images
orthanc
sudo docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc
防火墙
查看状态
irewall-cmd --state
停止firewall
systemctl stop firewalld.service
启动
systemctl disable firewalld.service
sudo yum install firewalld
firewall-cmd --state
sudo systemctl status firewalld.service
云端口映射
开放4242、8042
orthanc配置
sudo docker run --rm --entrypoint=cat jodogne/orthanc /etc/orthanc/orthanc.json > /tmp/orthanc.json
修改后
sudo docker run -p 4242:4242 -p 8042:8042 --rm -v /tmp/orthanc.json:/etc/orthanc/orthanc.json:ro jodogne/orthanc
orthanc存储持久化
mkdir /tmp/orthanc-db
sudo docker run -p 4242:4242 -p 8042:8042 --rm -v /tmp/orthanc-db/:/var/lib/orthanc/db/ jodogne/orthanc:1.5.8
docker
关闭docker
service docker stop
systemctl stop docker
重启docker服务
service docker restart
systemctl restart docker
守护进程重启
systemctl daemon-reload
启动
systemctl start docker
nginx
跨域
vi /etc/nginx/nginx.conf
TODO