8000 Add --link accept container ID by coolljt0725 · Pull Request #10056 · moby/moby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add --link accept container ID #10056

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

Merged
merged 2 commits into from
Jan 14, 2015

Conversation

coolljt0725
Copy link
Contributor

The --link only accept container names right now,but we can't find a
reason to prevent us from using a container id to link target.We don't always to assign
a name to a container and use its id to identify it.Some other option such as --volumes-from
can accept both container names and id,so it's weird --link only accept container name. This
patch add --link accept container ID.
Signed-off-by: Lei Jitang leijitang@huawei.com

Fixes #5186

Signed-off-by: Lei Jitang <leijitang@huawei.com>
@coolljt0725
Copy link
Contributor Author

Fix #5186

@tianon
Copy link
Member
tianon commented Jan 13, 2015

I love how small the diff here is. 👍

I'll bet @LK4D4 is going to come asking for a test or two soon though. 😄

@coolljt0725
Copy link
Contributor Author

@tianon 😄 haha,maybe I should add tests before his asking.

@crosbymichael
Copy link
Contributor
8000

LGTM

Please add a test though

Signed-off-by: Lei Jitang <leijitang@huawei.com>
@coolljt0725
Copy link
Contributor Author

Update,Add tests

@jessfraz
Copy link
Contributor

nice LGTM

crosbymichael added a commit that referenced this pull request Jan 14, 2015
@crosbymichael crosbymichael merged commit 37b6940 into moby:master Jan 14, 2015
@coolljt0725 coolljt0725 deleted the add_link_accept_ID branch March 5, 2015 15:47
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.

--link only accepts container names, not container IDs
4 participants
0