• Register
0 votes

Problem :

While installing a docker project from github facing following issue
package context: unrecognized import path "context" (import path does not begin with hostname)
6 5 3
6,930 points

1 Answer

0 votes

Solution :

This package context is only available in go versions 1.7 and after you try to check all the dockerfiles in your specified folders e.g. microservices-docker-go-mongodb-master in your link and change 

from golang:1.6 to golang:1.7

Next you need to change the port number of the db in your file docker-compose.yml



image: mongo:3.3
container_name: cinema-db
  - "27017:27017"
  - ./backup:/backup:rw 


- "27018:27018"

As you have already installed mongodb 27017 you must change it.

9 7 4
38,600 points

Related questions

0 votes
1 answer 693 views
Problem : This is the very first time that I am using Jenkins and I have gone through the several articles but unable to find any satisfactory answers. We have the .Net project, and we are using our private GitHub repository. ... hooks on GitHubRepositoryName[host=github.com,username=MyCompanyName,repository=reponame] at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:342)
asked Dec 27, 2019 alecxe 7.5k points
0 votes
1 answer 211 views
Problem : I wanted to commit to the Github desktop I am currently using windows 8.1 and this is my first time to commit using Github I only did it once on my Linux before that, but now I am getting following error Commit failed - exit code 128 received, and below ... find the git.exe I found the git.bat at below path are they the same? C:\Users\<username>\AppData\Local\GitHubDesktop\bin\git.bat
asked Dec 9, 2019 alecxe 7.5k points
0 votes
1 answer 1.6K views
Problem : I have the below problem when I just try to pull code, using my GIT Bash on windows Even after adding/removing the origin I am still facing the same error as below. Fatal: could not read Username for 'https://github.com': No such file or directory
asked Dec 19, 2019 alecxe 7.5k points
1 vote
1 answer 57 views
Problem : I am getting mime type error because its mime type ('text/plain') is not executable, and strict mime type checking is enabled.
asked Nov 11, 2019 peterlaw 6.9k points