对了好几遍了,还是找不到docker run 哪里写错了。

来源:2-3 go-micro基础之 grpc proto

星光如此灿烂

2021-06-17

[root@localhost protobuf]# pwd
/www/golang/protobuf
[root@localhost protobuf]# ls
product.proto
[root@localhost protobuf]# cat product.proto 
syntax = "proto3";

package go.micro.service.product;

service Product {
    rpc AddProduct(ProductInfo) returns (ResponseProduct) {}
}

message ProductInfo {
    int64 id = 1;
    string product_name = 2;
}

message ResponseProduct {
    int64 product_id = 1;
}
[root@localhost protobuf]# 
[root@localhost protobuf]# docker run --rm -v $(pwd):$(pwd) -w $(pwd) -e ICODE=xxxx cap1573/cap-protoc -I ./ --go_out=./ --micro_out=./ ./product.proto 
Cap老师提醒您,请对照视频输入正确命令和参数
%!(EXTRA *exec.ExitError=exit status 1)[root@localhost protobuf]# 

是linux cent7.9系统

写回答

2回答

Cap

2021-06-18

你是什么系统啊

0
0

Cap

2021-06-18

你是什么西啊

0
0

Go微服务入门到容器化实践,落地可观测微服务项目

这可能是你全面提升Go微服务能力的好机会

861 学习 · 322 问题

查看课程