Closed maxthomas closed 6 years ago
Hey @maxthomas, I'm sorry the examples aren't working for you.
I noticed that there was no attempt to download the docker image there. Do you have a specific version already pulled?
I deleted all images on my system and was able to run the following successfully. Can you give it a shot?
I used docker images -a | grep "protoc-gen-doc" | awk '{print $3}' | xargs docker rmi
to remove the local images and then ran:
➜ protoc-gen-doc git:(master) docker run --rm \
-v $(pwd)/examples/doc:/out \
-v $(pwd)/examples/proto:/protos \
pseudomuto/protoc-gen-doc
Unable to find image 'pseudomuto/protoc-gen-doc:latest' locally
latest: Pulling from pseudomuto/protoc-gen-doc
d2ca7eff5948: Already exists
755ec9c7b09f: Pull complete
bee8587ff7c9: Pull complete
42f587175cf1: Pull complete
d922ee730c67: Pull complete
Digest: sha256:c6af7507d1796dae119a64f6795877457f0d450de9e1e5749aa19a478f3f711e
Status: Downloaded newer image for pseudomuto/protoc-gen-doc:latest
hey @pseudomuto , thank you so much for getting back to me!
you are right, i tried on a different docker host and it works. here is the version that does not work (still):
» cd $GOSRC/github.com/pseudomuto/protoc-gen-doc
pseudomuto/protoc-gen-doc [master] » docker images -a | grep "protoc-gen-doc" | awk '{print $3}' | xargs docker rmi
Untagged: docker.io/pseudomuto/protoc-gen-doc:latest
Untagged: docker.io/pseudomuto/protoc-gen-doc@sha256:c6af7507d1796dae119a64f6795877457f0d450de9e1e5749aa19a478f3f711e
Deleted: sha256:13eddcd32f6e41fcc4a45eeae6d862f3641a62054c2f4e1a8e7f904262129647
Deleted: sha256:51a34ecd5f2c3835424463bb62207b2ddd86d34b139d99d4698ac525ca92d929
Deleted: sha256:d8cda3d09efc22e52b5371d11766faf0e05376d486beb473ce9aa217b334d766
Deleted: sha256:59388c385f1b0ea40f4d93fef6c4725e2c71773ea57bdf457f0f09072987c850
Deleted: sha256:7fd860b7035e67fb9c06a0c7685c7f5210740287616b53d5d3abed0d4cda7fad
Deleted: sha256:cf051be4e1497fdb92f0e9f03a5bbef49a3e7740cabef98a1e0c9e4d001a51db
pseudomuto/protoc-gen-doc [master] »
pseudomuto/protoc-gen-doc [master] » protoc-gen-doc git:(master) docker run --rm \
> -v $(pwd)/examples/doc:/out \
> -v $(pwd)/examples/proto:/protos \
> pseudomuto/protoc-gen-doc
zsh: number expected
pseudomuto/protoc-gen-doc [master] » docker run --rm \
-v $(pwd)/examples/doc:/out \
-v $(pwd)/examples/proto:/protos \
pseudomuto/protoc-gen-doc
Unable to find image 'pseudomuto/protoc-gen-doc:latest' locally
Trying to pull repository docker.io/pseudomuto/protoc-gen-doc ...
sha256:c6af7507d1796dae119a64f6795877457f0d450de9e1e5749aa19a478f3f711e: Pulling from docker.io/pseudomuto/protoc-gen-doc
d2ca7eff5948: Pull complete
755ec9c7b09f: Pull complete
bee8587ff7c9: Pull complete
42f587175cf1: Pull complete
d922ee730c67: Pull complete
Digest: sha256:c6af7507d1796dae119a64f6795877457f0d450de9e1e5749aa19a478f3f711e
Status: Downloaded newer image for docker.io/pseudomuto/protoc-gen-doc:latest
protos/*.proto: No such file or directory
pseudomuto/protoc-gen-doc [master] » docker version
Client:
Version: 1.13.1
API version: 1.26
Package version: docker-1.13.1-58.git87f2fab.el7.centos.x86_64
Go version: go1.9.4
Git commit: 87f2fab/1.13.1
Built: Fri May 11 14:30:13 2018
OS/Arch: linux/amd64
Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Package version: docker-1.13.1-58.git87f2fab.el7.centos.x86_64
Go version: go1.9.4
Git commit: 87f2fab/1.13.1
Built: Fri May 11 14:30:13 2018
OS/Arch: linux/amd64
Experimental: false
feel free to close this issue if you feel like this version is too old or whatever else to support.
thanks again!
Not working for me: I just installed docker and pulled the image (pseudomuto/protoc-gen-doc), and run following command and gives error "protos/*.proto: No such file or directory". I use Ubuntu 18.04.
docker run --rm \ -v $(pwd)/examples/doc:/out \ -v $(pwd)/examples/proto:/protos \ pseudomuto/protoc-gen-doc
cloning the repo freshly,
cd
ing into it and trying to docker examples does not workthis is on linux (centOS)