Separate container IDs from container names
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
484719c8fe
commit
0482a4281a
4 changed files with 50 additions and 38 deletions
|
@ -229,8 +229,9 @@ type ContainerState struct {
|
|||
}
|
||||
|
||||
// NewContainer creates a container object.
|
||||
func NewContainer(name string, bundlePath string, logPath string, labels map[string]string, sandbox string, terminal bool) (*Container, error) {
|
||||
func NewContainer(id string, name string, bundlePath string, logPath string, labels map[string]string, sandbox string, terminal bool) (*Container, error) {
|
||||
c := &Container{
|
||||
id: id,
|
||||
name: name,
|
||||
bundlePath: bundlePath,
|
||||
logPath: logPath,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue