gohttpserver/docker/push_manifest

24 lines
678 B
Text
Raw Permalink Normal View History

2018-09-26 10:40:05 +02:00
#!/bin/bash
#
# push manifest
if [[ ! -d $HOME/.docker ]]
then
mkdir $HOME/.docker
fi
set -ex
2018-09-26 14:06:09 +02:00
sed -i '/experimental/d' $HOME/.docker/config.json
2018-09-26 11:15:18 +02:00
sed -i '1a"experimental": "enabled",' $HOME/.docker/config.json
2018-09-26 10:40:05 +02:00
docker manifest create codeskyblue/gohttpserver \
codeskyblue/gohttpserver:latest \
codeskyblue/gohttpserver:armhf
2018-09-26 11:06:12 +02:00
docker manifest annotate codeskyblue/gohttpserver \
codeskyblue/gohttpserver:latest --os linux --arch amd64
docker manifest annotate codeskyblue/gohttpserver \
2018-09-26 11:48:51 +02:00
codeskyblue/gohttpserver:armhf --os linux --arch arm --variant v7
2018-09-26 10:40:05 +02:00
docker manifest push codeskyblue/gohttpserver
# check again
docker run mplatform/mquery codeskyblue/gohttpserver