You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/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;
|