doy51723
2018-08-07 09:12
浏览 334

在存储库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?

图片转代码服务由CSDN问答提供 功能建议

当我尝试编译Moby(最新版本2018.08.07)时,结果如下:

  docker build -t“ docker-dev:master” -f“ Dockerfile”。
将构建上下文发送到Docker守护程序43.28 MB 
步骤1:从golang:1.10.3 AS base 
Pulling 在存储库docker.io/library/golang
make中找不到存储库docker.io/library/golang
Tag 1.10.3 AS库:*** [build]错误1 
   
 \  n 

我的主机是:centos 6

  Linux li1202-249.members.linode.com 4.15.13-x86_64-linode106#1 SMP 2月27日,星期二:  42:14 UTC 2018 x86_64 x86_64 x86_64 GNU / Linux 
   
 
 

我的泊坞窗版本是:

  [root @  li1202-249〜]#docker版本
Client:
版本:1.9.1 
API版本:1.21 
Go版本:go1.4.3 
Git提交:a34a1d5 
内置:Fri Nov 20 17:56:04 UTC 2015 
OS /  Arch:linux / amd64 
   
 
 

服务器: 版本:1.9.1 API版本:1.21 Go版本:go1.4.3 Git提交:a34a1d5 内置:Fri Nov 20 17:56:04 UTC 2015 OS / Arch:linux / amd64

我设置的配置错误?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

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.

    点赞 评论

相关推荐 更多相似问题