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

Error: couldn't initialize connection to host mongodb, address is invalid #2

Open
Luizzzzz opened this issue Nov 21, 2019 · 0 comments

Comments

@Luizzzzz
Copy link

按照文档中的步骤出现如下错误,

db_seed_1  | MongoDB shell version v3.4.7
db_seed_1  | connecting to: mongodb://mongodb:27017/admin
db_seed_1  | 2019-11-21T07:06:04.325+0000 I NETWORK  [thread1] getaddrinfo("mongodb") failed: Name or service not known
db_seed_1  | 2019-11-21T07:06:04.325+0000 E QUERY    [thread1] Error: couldn't initialize connection to host mongodb, address is invalid :
db_seed_1  | connect@src/mongo/shell/mongo.js:237:13
db_seed_1  | @(connect):1:6
db_seed_1  | exception: connect failed
db_seed_1  | MongoDB shell version v3.4.7
db_seed_1  | connecting to: mongodb://mongodb:27017/pipeline
db_seed_1  | 2019-11-21T07:06:06.061+0000 I NETWORK  [thread1] getaddrinfo("mongodb") failed: Name or service not known
db_seed_1  | 2019-11-21T07:06:06.061+0000 E QUERY    [thread1] Error: couldn't initialize connection to host mongodb, address is invalid :
db_seed_1  | connect@src/mongo/shell/mongo.js:237:13
db_seed_1  | @(connect):1:6
db_seed_1  | exception: connect failed

尝试过关闭防火墙,重置docker

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

1 participant