问题:编译eshoponcontainers失败,提示error:invalid reference format

环境:

visual studio 2017 v15.4.2,docker ce Version 17.06.0-ce-win19 (12801)

参考问题页:

https://github.com/dotnet-architecture/eShopOnContainers/issues/107

问题:

F5运行是报错:

error : Building webstatus

error : invalid reference format.

与:

audipen commented on 26 Sep ? edited

的问题一致。

原因与解决方案:

audipen commented on 28 Sep ? edited

So finally figured out the issue. After comparing the docker-compose file with a ‘Hello World‘ application I realised that the ‘image‘ tag in the docker-compose was causing the ‘invalid reference format‘ error.

For example in the definition of the ‘basket‘ microservice the ‘image‘ has the following value.
basket.api:
image: eshop/basket.api:${TAG:-latest}

If I remove ‘:${TAG:-latest}‘ everything runs as expected. Not sure what the problem with the value is though. Still not that docker proficient. I removed this tagging for all service entries.

sgreenmsft commented on 7 Oct

@audipen The issue with the ${TAG:-latest} was a bug in the VS Docker tools. It‘s fixed in the VS 2017 15.4 update (currently in preview).

解决方案:

删除docker-compose.yml中所有镜像的 ‘:${TAG:-latest}‘ 后缀。因为默认debug模式下,visual studio 2017 docker tools会生成docker-compose.vs.debug.g.yaml,会在镜像后增加:dev标签。如果在docker-compose.yaml中增加了latest标签,则会导致生成的镜像为name:latest:dev,导致编排失败。

这是visual studio 2017 docker tool的bug,会在后续版本解决。

当前的解决方案是,删除所有‘:${TAG:-latest}‘ 后缀。

时间: 2024-07-31 17:34:17

问题:编译eshoponcontainers失败,提示error:invalid reference format的相关文章

ruby环境sass编译中文出现Syntax error: Invalid GBK character错误解决方法

sass文件编译时候使用ruby环境,无论是界面化的koala工具还是命令行模式的都无法通过,真是令人烦恼. 容易出现中文注释时候无法编译通过,或者出现乱码,找了几天的解决方法终于解决了. 这个问题的奇葩之处在于在xp环境中没有任何问题,只是在windows7环境中才出现的这个. sass编译时候出现如下错误的解决方法: Syntax error: Invalid GBK character "\xE5" on line 8 of E:\work\sass\sass\_big_box.

编译Uboot时提示error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

在Ubuntu14.04 64位系统中已经安装了libc6:i386的库,编译Uboot时提示error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory. 出错原因是:缺少lib32z1库 解决方法:sudo apt-get install lib32z1

在centos7.5使用DockerFile构建镜像时报错“Error parsing reference: "microsoft/dotnet:2.2-aspnetcore-runtime AS base" is not a valid repository/tag: invalid reference format”

运行dockerfile时报出的错误 FROM microsoft/dotnet:2.2-aspnetcore-runtime AS base Error parsing reference: "microsoft/dotnet:2.2-aspnetcore-runtime AS base" is not a valid repository/tag: invalid reference format 这个问题一般是由docker的版本错误导致的 FROM microsoft/dotn

Docker 错误 docker: invalid reference format. 的解决

运行 docker run –it –v /dataset:/dataset –v /inference:/inference –v /result:/result floydhub/pytorch:0.4.0-py2.29 /inference/inference.sh 报错 docker: invalid reference format. See 'docker run --help'. 发现原来是...原来是...网站上复制下来的–应该是-才对. 所以这件事告诉我们,作为发布者,务必用<

Android源码编译:出现zip error: Invalid command arguments解决办法

前段时间出版本编译的时候,偶然间发现了这个问题: zip error: Invalid command arguments (cannot repeat names in zip file) make: *** [out/target/product/k200_hdmiin/system/etc/recovery-resource.dat] Error 16 make: *** Waiting for unfinished jobs.... 背景介绍 博主目前从事AndroidTVBox开发,基

ndk-build 编译报错 fatal error: error writing to -: Invalid argument } ^

最近下载同事的 Android 工程代码,协作开发一些 Native 底层功能,需要首先编译底层的一些 JNI 的代码库,由于工程较大,且依赖的第三方库比较多,下载完毕后,通过 ndk-build 进行编译,报了一些个奇怪的错误,并指向了代码文件的最后一行,如下所示: fatal error: error writing to -: Invalid argument } ^ 此工程源码一直是同事在 MAC 下进行开发维护的,在同事的环境中是正常的,而我是 Windows 平台,刚开始怀疑是文件类

VS2010报错无法编译:LINK : fatal error LNK1123: failure during conversion to COFF: file invalid

win7 64位 专业版 + vs2010 从vc6.0下转过来的一个项目,突然遇到这个问题. 解决方案: 用C:\Windows\winsxs\x86_netfx-cvtres_for_vc_and_vb_b03f5f7f11d50a3a_6.1.7600.16385_none_ba476986f05abc65下面的cvtres.exe替换掉C:\Program Files\Microsoft Visual Studio 10.0\VC\bin的cvtres.exe ,就可以了. VS2010

Visual Studio 编译项目失败,提示找不到文件

?? 博客地址:http://blog.csdn.net/FoxDave 今天碰到了一个蠢问题,虽然咱们正常情况下是遇不到的,但这确实是个应该注意的地方,所以简单记录一下. Visual Studio 编译项目失败,提示找不到CS文件什么的,但是你的项目里文件明明是存在的,出现这种情况的时候看看你的项目是不是处在了一个比较深的文件夹层次目录里,由于full path太长而导致报出找不到文件的错误. 解决的办法就是把你的项目移动到一个浅的文件目录. 觉得自己太水了--

【Cocos2d-x】编译Android工程时提示error: &#39;GL_LINE_SMOOTH&#39; was not declared in this scope

在Cocos2d-x项目中用到了OpenGL,使用GL_LINE_SMOOTH开启线条抗锯齿.代码如下: ccDrawColor4B(50, 26, 12, 255); // 设置线宽 glLineWidth(2.0f); // 启用线段反锯齿 glEnable(GL_LINE_SMOOTH); // 画第一条线 ccDrawLine(startPoint1,endPoint); // 画第二条线 ccDrawLine(startPoint2,endPoint); // 关闭线段反锯齿 glDi