docker 使用问题记录

multi-stage build 的支持

在使用docker 进行多阶段构建镜像时,有如下报错;查看资料是docker 17.05 才开始支持多阶段构建。

Error parsing reference: "golang:alpine AS binarybuilder" is not a valid repository/tag: inval

解决办法

  1. 卸载docker
yum remove docker
yum remove docker-common
yum remove docker-client
  1. 安装新版本
curl -fsSL https://get.docker.com/ | sh
systemctl restart docker
systemctl enable docker
原文地址:https://www.cnblogs.com/hiyang/p/13409041.html