Convert v to string
This commit is contained in:
parent
32ce8fbcb4
commit
ad0a763661
|
@ -137,7 +137,7 @@ func resourceDockerContainerCreate(d *schema.ResourceData, meta interface{}) err
|
||||||
}
|
}
|
||||||
|
|
||||||
if v, ok := d.GetOk("network_mode"); ok {
|
if v, ok := d.GetOk("network_mode"); ok {
|
||||||
hostConfig.NetworkMode = v
|
hostConfig.NetworkMode = v.(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
createOpts.HostConfig = hostConfig
|
createOpts.HostConfig = hostConfig
|
||||||
|
|
Loading…
Reference in New Issue