Skip to content
This repository has been archived by the owner on Apr 28, 2018. It is now read-only.

stop-container needs a "name" parameter #79

Closed
BenjaminArmstrong opened this issue May 31, 2016 · 1 comment
Closed

stop-container needs a "name" parameter #79

BenjaminArmstrong opened this issue May 31, 2016 · 1 comment

Comments

@BenjaminArmstrong
Copy link

No description provided.

@swernli
Copy link
Contributor

swernli commented May 31, 2016

ID is the parameter you are looking for. Everywhere that you see a "-Id" parameter, that also accepts the full friendly name (or partial ID). This matches docker CLI and docker engine api, where ID doesn't mean "fully qualified alphanumeric unique identifier" but rather "full name or unique subset of ID." Unfortunately, English is an insufficient language, and the word that means "either name or identifier" is "identifier." So you can already do what you want to do, ie:
new-container windowsservercore -containername test cmd /c echo test
start-container test -passthru

@swernli swernli closed this as completed May 31, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants