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

Ditch a lot of "--link" examples (using "--network some-network" instead to force users to do more homework) #1441

Merged
merged 2 commits into from
Mar 15, 2019

Conversation

tianon
Copy link
Member

@tianon tianon commented Mar 5, 2019

@tianon tianon requested a review from yosifkit March 8, 2019 23:58
Copy link
Member

@yosifkit yosifkit left a 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? 😢


```console
$ docker run --name some-cassandra2 -d --link some-cassandra:cassandra %%IMAGE%%:tag
$ docker run --name some-cassandra2 -d --network some-network %%IMAGE%%:tag
Copy link
Member

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).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$ 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

cassandra/content.md Show resolved Hide resolved
@tianon tianon requested a review from yosifkit March 14, 2019 23:43
@yosifkit yosifkit merged commit 6523f95 into docker-library:master Mar 15, 2019
@yosifkit yosifkit deleted the ditch-lots-of-linking branch March 15, 2019 20:52
tianon added a commit to infosiftr/faq that referenced this pull request Jul 3, 2020
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

Successfully merging this pull request may close these issues.

2 participants