10000 docs/mysql: ambiguous --network option in "connect to mysql" section. · Issue #1984 · docker-library/docs · GitHub
[go: up one dir, main page]

Skip to content

docs/mysql: ambiguous --network option in "connect to mysql" section. #1984

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

Closed
ghost opened this issue Jul 3, 2021 · 1 comment
Closed

Comments

@ghost
Copy link
ghost commented Jul 3, 2021

I want to

  • create MySql container
  • connect to this container from docker

I follow instructions

  • to create container
    docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:tag
    
  • to connect
    docker run -it --network some-network --rm mysql mysql -hsome-mysql -uexample-user -p
    

The last instruction assumes MySql instance were created with some network. But it wasn't.

Why is there --network some-network option in last instruction but not something like --link some-mysql?

@wglambert
Copy link
Contributor

https://github.com/docker-library/faq#--link-is-deprecated

Several of the official images were updated in #1441 with the compromise of using --network some-network in an attempt to convey to users that additional effort will be required for them to connect their services successfully (implying that they should go read documentation / learn about Docker's container networking functionality).

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
0