We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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负责文件 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、报错。
The text was updated successfully, but these errors were encountered:
I'm getting the same above output.
Sorry, something went wrong.
No branches or pull requests
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、报错。
The text was updated successfully, but these errors were encountered: