2
goctl docker生成的路径是 COPY hello/etc /app/etc 教程文档生成的路径是 COPY service/hello/etc /app/etc
goctl docker生成的路径是 COPY hello/etc /app/etc 教程文档生成的路径是 COPY service/hello/etc /app/etc
goctl的版本信息:goctl version 1.1.8 darwin/amd64
golang的版本信息:go version go1.16 darwin/amd64
docker的版本信息:
Client:
Cloud integration: 1.0.17
Version: 20.10.7
API version: 1.41
Go version: go1.16.4
Git commit: f0df350
Built: Wed Jun 2 11:56:23 2021
OS/Arch: darwin/arm64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.7
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: b0f5bc3
Built: Wed Jun 2 11:55:36 2021
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.4.6
GitCommit: d71fcd7d8303cbf684402823e425e9dd2e99285d
runc:
Version: 1.0.0-rc95
GitCommit: b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
docker-init:
Version: 0.19.0
GitCommit: de40ad0
@HibariX 这个跟自己选择work dir有关,不能绝对的参考文档的地址,要合理判断和选择自己的work dir
goctl docker是会根据当前目录自动适配的,文档是基于有service目录写的,适当调整一下就好了哈