您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

compile_docker_image.sh 184B

123456789
  1. #!/bin/bash
  2. if [ -z "$1" ]; then
  3. echo "A name for the image is needed"
  4. exit 1
  5. fi
  6. docker build -t 192.168.27.25:5000/$(whoami)/$1 .
  7. docker push 192.168.27.25:5000/$(whoami)/$1