简体   繁体   中英

minio docker runs in Ubuntu (VirtualBox), trying to connect to minio server from host machine (MacOS or Win10), connection reset

The Context:

  • Got minio (s3 compatible storage) from docker hub
  • Run the minio docker image in Unbuntu (VirtualBox)
  • Host OS: Mac or Win10
  • Set up network -> port forwarding -> 9000:9000 in VirtualBox

The Problem: - In Ubuntu, minio works perfectly, http://localhost:9000 - Outside Ubuntu, in Win10 or Mac (host), any client failed to connect to the minio server. Error: connection reset.

Alternative Test: - Installed and run minio directly in host machine - Connection from any client was successful

The Question: - Why did I connect to minio server in Ubuntu (VirtualBox) failed from host machine? What was the root cause?

Thank you for your time.

Go to VirtualBox, select the Ubuntu image, go to Networks tab and select "Attached to" as "Bridged Adapter". This will bring the Ubuntu machine on the same network as the host's. Now restart Ubuntu, type

sudo ifcongif

and see the IP address that Ubuntu has received.

Now, from the host machine, go to http://IP:9000 and you should be able to access your container.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM