环境:

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}' 后缀。

最新文章

  1. 工厂模式模拟Spring的bean加载过程
  2. caffe的python接口学习(5):生成deploy文件
  3. dbms_output.put_line长度限制问题
  4. Codeforces Round #381 (Div. 2)A. Alyona and copybooks(dfs)
  5. 将Win8.1/WP8.1应用迁移到Universal Windows Platform
  6. Redo丢失场景和处理方法
  7. JavaScript代码检查工具 — JSHint
  8. PAT-乙级-1008. 数组元素循环右移问题 (20)
  9. 【HDOJ】4251 The Famous ICPC Team Again
  10. Apache http强制转为https页面访问(转)
  11. .net平台是什么?.net平台的组成,.net平台的好处
  12. iOS开发之Quartz2D
  13. 比较JqGrid与XtraGrid
  14. express 安装和运行
  15. Beta冲刺 第四天
  16. Django—Form、ModelForm
  17. Go基础系列:双层channel用法示例
  18. ajax请求导致status为canceled(无任何回调数据)的原因
  19. WPF防止重复运行实例
  20. ios之开发者须知常见简写英文代表的含义

热门文章

  1. clipboard.js 介绍
  2. ZOJ1315
  3. 使用siege对web接口进行post方式的压力测试
  4. mySQL、mariaDB、noSQL、SQL server、redis之间是什么关系?
  5. 实现LAMP
  6. Django REST FrameWork中文教程2:请求和响应
  7. 关于EF Code First模式不同建模方式对建表产生的影响
  8. 本地idea调试spark2.x程序
  9. MySql中利用insert into select 准备数据uuid主键冲突
  10. JPA 映射单向多对一的关联关系