-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Ditch a lot of "--link" examples (using "--network some-network" instead to force users to do more homework) #1441
Ditch a lot of "--link" examples (using "--network some-network" instead to force users to do more homework) #1441
Conversation
…ead to force users to do more homework)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some notes on cassandra. Maybe needs to drop the whole docker inspect
subshell option too? 😢
cassandra/content.md
Outdated
|
||
```console | ||
$ docker run --name some-cassandra2 -d --link some-cassandra:cassandra %%IMAGE%%:tag | ||
$ docker run --name some-cassandra2 -d --network some-network %%IMAGE%%:tag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line won't create a cluster now; using link was correct, since cassandra took advantage of the link variables (https://github.com/docker-library/cassandra/blob/386357f2c90e5a53ad26f610cdc0eb001a67e9f0/3.11/docker-entrypoint.sh#L54-L56).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ docker run --name some-cassandra2 -d --network some-network %%IMAGE%%:tag | |
$ docker run --name some-cassandra2 -d --network some-network -e CASSANDRA_SEEDS=some-cassandra %%IMAGE%%:tag |
Closes docker-library/mysql#545