commands: implementation for inspect

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2019-04-15 10:21:09 -07:00
parent bd3d5cd19e
commit b7e15f3113
5 changed files with 189 additions and 23 deletions

View File

@ -128,7 +128,11 @@ func runCreate(dockerCli command.Cli, in createOptions, args []string) error {
}
if in.use && ep != "" {
if err := txn.SetCurrent(ep, ng.Name, false, false); err != nil {
current, err := getCurrentEndpoint(dockerCli)
if err != nil {
return err
}
if err := txn.SetCurrent(current, ng.Name, false, false); err != nil {
return err
}
}