mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-20 15:31:24 +02:00
small refactor and fixes
This commit is contained in:
@@ -8,12 +8,11 @@ import (
|
||||
|
||||
func Inspect(dockerHost string, containerID string) (*Container, error) {
|
||||
client, err := ConnectClient(dockerHost)
|
||||
defer client.Close()
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
defer client.Close()
|
||||
return client.Inspect(containerID)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user