mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Remove obtaining name from docker container info
This commit is contained in:
parent
c18ceb20bc
commit
cfb9a6457e
1 changed files with 0 additions and 5 deletions
|
|
@ -141,11 +141,6 @@ module VagrantPlugins
|
|||
container_info = inspect_container(c)
|
||||
|
||||
if container_info["HostConfig"]["PortBindings"]
|
||||
# We remove the first character because docker inspect adds a '/' to
|
||||
# the beginning every container name to match the "internal"
|
||||
# implementation of docker:
|
||||
# https://github.com/moby/moby/issues/6705
|
||||
container_name = container_info["Name"][1..-1]
|
||||
port_bindings = container_info["HostConfig"]["PortBindings"]
|
||||
next if port_bindings.empty? # Nothing defined, but not nil either
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue