|
1234567891011121314151617 |
- #!/usr/bin/env bash
- image_version=`date +%Y%m%d%H%M`;
-
- docker stop health_monitor || true;
- docker rm health_monitor || true;
- # ɾ
- docker rmi -f $(docker images | grep telpo/health_monitor | awk '{print $3}')
-
- docker build -f ./HealthMonitor.WebApi/Dockerfile . -t telpo/health_monitor:$image_version;
- #
- docker run --network=host -d -v /home/data/health_monitor/log:/var/health_monitor/logs --restart=always --name health_monitor telpo/health_monitor:$image_version --environment=Development
- #ɾNone
- docker rmi -f $(docker images | grep none | awk '{print $3}')
- # 鿴б
- docker images;
- # 鿴־
- docker logs health_monitor;
|