We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc1f770 commit abc7fdeCopy full SHA for abc7fde
bin/retag_latest.sh
@@ -0,0 +1,16 @@
1
+#!/bin/bash
2
+
3
+echo 'Pull alpine image.'
4
+docker pull chusiang/ansible-jupyter:alpine-3.4
5
+echo
6
7
+echo 'Tag alpine image to latest.'
8
+docker tag chusiang/ansible-jupyter:alpine-3.4 chusiang/ansible-jupyter:latest
9
10
11
+echo 'Push the latest tag.'
12
+docker push chusiang/ansible-jupyter:latest
13
14
15
+echo 'Remove old image.'
16
+docker rmi $(docker images | grep 'chusiang/ansible-jupyter' | grep '<none>' | awk '{ print $3 }')
0 commit comments