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 Matlab问题解答有两个问题
  • ¥50 Oracle Kubernetes服务器集群主节点无法访问,工作节点可以访问
  • ¥15 LCD12864中文显示
  • ¥15 在使用CH341SER.EXE时不小心把所有驱动文件删除了怎么解决
  • ¥15 gsoap生成onvif框架
  • ¥15 有关sql server business intellige安装,包括SSDT、SSMS。
  • ¥15 stm32的can接口不能收发数据
  • ¥15 目标检测算法移植到arm开发板
  • ¥15 利用JD51设计温度报警系统
  • ¥15 快手联盟怎么快速的跑出建立模型