Skip to content

Add --link accept container ID#10056

Merged
crosbymichael merged 2 commits intomoby:masterfrom
coolljt0725:add_link_accept_ID
Jan 14, 2015
Merged

Add --link accept container ID#10056
crosbymichael merged 2 commits intomoby:masterfrom
coolljt0725:add_link_accept_ID

Conversation

@coolljt0725
Copy link
Copy Markdown
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 [email protected]

Fixes #5186

@coolljt0725
Copy link
Copy Markdown
Contributor Author

Fix #5186

@tianon
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@crosbymichael
Copy link
Copy Markdown
Contributor

LGTM

Please add a test though

Signed-off-by: Lei Jitang <[email protected]>
@coolljt0725
Copy link
Copy Markdown
Contributor Author

Update,Add tests

@jessfraz
Copy link
Copy Markdown
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