codekitchen / dinghy

faster, friendlier Docker on OS X
MIT License
2.12k stars 109 forks source link

How to access to same host and port as specified? #291

Closed dalisoft closed 4 years ago

dalisoft commented 4 years ago

Hi @codekitchen.

I tried to get your tool working and it's works good except one issue!

First of thanks for this tool and it's has great performance, when disabling all config except VM, performance 4-x faster than Docker Desktop for Mac. This tool has very good performance (not as Linux, but only just 3.5x slower than Linux, not 10-12x, like Docker Desktop for Mac).

When i run my docker image with docker run -p 3000:3000 IMAGE_NAME, i should able to use port localhost:3000 from browser, but i'm cant. But available from DOCKER_IP:3000

Even i tried this docker run -h localhost:localhost -p 3000:3000 IMAGE, not available from localhost:3000.

If i enable DNS config from Dinghy preferences, i able to use IMAGE_NAME.docker from browser, but i need functioning this like Docker Desktop from Mac.

Used tool: docker, docker-machine, docker-compose, xhyve + docker-machine-driver-xhyve, dinghy

OS: macOS 10.15.1

Thanks you again for best tool!

codekitchen commented 4 years ago

Thanks. Dinghy does not forward ports from the VM to the host machine, so this isn't supported. It could theoretically be added using a mechanism similar to what Docker for Mac does, but it's not something I'm planning to work on myself.

dalisoft commented 4 years ago

Thanks, then currently my workaround is adding host like this DOCKER_IP docker.host!

dalisoft commented 4 years ago

Performance is very very great, preference editing well, clean and easy. I sure this project will get new users more than Docker Desktop over time.

codekitchen commented 4 years ago

ha, that's very kind of you but honestly I've been trying to deprecate this project for years. I push people to just use Docker Desktop when possible. :) I'm sure their performance will continue to improve with time.

dalisoft commented 4 years ago

When i reported issue, they even didn't answered. Horrible performance and bad optimized things, what their product works good only CLI (not always through) and your tool solves my problem, here i can show you how i able to save 2-3GB ram and improved performance by 20-25% on macOS Catalina.

Docker for Desktop:

Your tool:

Don't forget, not all developers can get powerful machine. Our task (i also developer) make it's possible for all users and you is one of people which helps users get latest and performant Docker with your tools FREE! We not required to change computer to powerful to use Docker (we - users of this tool).

I think you understand what i mean.

Thanks again for tool.

Sorry for bad english