#!/bin/bash -ilex
container=medical-cloud_container
image=medical-cloud
cd /usr/local/rancher/medical-cloud
docker build -t ${image} .
docker stop ${container}
docker rm ${container}
docker run -d -it -p 9002:8080 --privileged=true --name=${container} ${image}
网友评论