doy51723 2018-08-07 09:12
浏览 780
已采纳

在存储库docker.io/library/golang中找不到标签1.10.3 AS base

when i try to compile moby (the latest version 2018.08.07), the outcome like this:

docker build   -t "docker-dev:master" -f "Dockerfile" .
Sending build context to Docker daemon 43.28 MB
Step 1 : FROM golang:1.10.3 AS base
Pulling repository docker.io/library/golang
Tag 1.10.3 AS base not found in repository docker.io/library/golang
make: *** [build] Error 1

my host machine is : centos 6

Linux li1202-249.members.linode.com 4.15.13-x86_64-linode106 #1 SMP Tue Mar 27 14:42:14 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

my docker version is:

[root@li1202-249 ~]# docker version
Client:
Version:      1.9.1
API version:  1.21
Go version:   go1.4.3
Git commit:   a34a1d5
Built:        Fri Nov 20 17:56:04 UTC 2015
OS/Arch:      linux/amd64

Server: Version: 1.9.1 API version: 1.21 Go version: go1.4.3 Git commit: a34a1d5 Built: Fri Nov 20 17:56:04 UTC 2015 OS/Arch: linux/amd64

what's the wrong configuration i had set?

  • 写回答

1条回答 默认 最新

  • douan5151 2018-08-07 09:54
    关注

    Multi-stage builds are a new feature requiring Docker 17.05 or higher on the daemon and client.

    https://docs.docker.com/develop/develop-images/multistage-build/

    Your (ancient) Docker version doesn't support multi-stage builds. You can update Docker, build everything in one stage, or use the builder pattern described in the article linked above.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 根据以下文字信息,做EA模型图
  • ¥15 删除虚拟显示器驱动 删除所有 Xorg 配置文件 删除显示器缓存文件 重启系统 可是依旧无法退出虚拟显示器
  • ¥15 vscode程序一直报同样的错,如何解决?
  • ¥15 关于使用unity中遇到的问题
  • ¥15 开放世界如何写线性关卡的用例(类似原神)
  • ¥15 关于并联谐振电磁感应加热
  • ¥60 请查询全国几个煤炭大省近十年的煤炭铁路及公路的货物周转量
  • ¥15 请帮我看看我这道c语言题到底漏了哪种情况吧!
  • ¥60 关机时蓝屏并显示KMODE_EXCEPTION_NOT_HANDLED,怎么修?
  • ¥66 如何制作支付宝扫码跳转到发红包界面