Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用1-simple.dockerfile ,创建镜像,运行镜像时,找不到jar #3

Open
van-scott opened this issue Dec 4, 2018 · 1 comment

Comments

@van-scott
Copy link

1负责文件
2[root@localhost go-docker]# docker build -t go-docker-dev .
Sending build context to Docker daemon 2.731 MB
Step 1/4 : FROM golang:1.8.5-jessie
---> ba52c9ef0f5c
Step 2/4 : WORKDIR /go/src/app
---> effc79fb9241
Removing intermediate container 15b6cd759a61
Step 3/4 : ADD src src
---> ca68dbcf11e8
Removing intermediate container 440c214ff105
Step 4/4 : CMD go run src/main.go
---> Running in 29ac9d1444eb
---> 95251f8b50f2
Removing intermediate container 29ac9d1444eb
Successfully built 95251f8b50f2
[root@localhost go-docker]# docker run --rm -it -p 8090:8080 go-docker-dev
src/main.go:8:2: cannot find package "github.com/sirupsen/logrus" in any of:
/usr/local/go/src/github.com/sirupsen/logrus (from $GOROOT)
/go/src/github.com/sirupsen/logrus (from $GOPATH)
[root@localhost go-docker]#
3、报错。

@glockjt
Copy link

glockjt commented Apr 27, 2020

I'm getting the same above output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants