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