Open mikebranderhorst opened 6 years ago
Hi @mikebranderhorst, check out this osx readme by @frosit, perhaps that will be more fitting for your situation: https://github.com/frosit/hypernode-docker/tree/master/examples/osx_development
FYI it's also possible to get in the docker just by logging into the docker with docker exec
and changing to the app user. This might not be the most complete solution, but might be nice for quick access:
docker ps # Check for docker ID
docker exec -ti <docker_id> /bin/bash
su app
I could run most of the stuff this way, but wasn't able to access the site on hypernode.local.local (though that might not be related, haven't check so far).
@kerrermanisNL
If you take a look at my example, I use docker-compose and there is an example with exec, see bash to ~
@vdloo
My example use docker-compose and I prefer not to use any other plugins/extensions/apps/programs
The example is provided and working for others to use. Including some basic usage examples. It would be nice to have this in the repo for others. The merged pull request with sync is not needed to work with docker and OSX
Hi @mikebranderhorst docker-sync seemed necessary in my opinion to have acceptable performance. Even the newer caching methods for docker for mac seemed to be too slow, especially with Magento 2. I've tested and compared them all. If your okay with the performance without docker-sync, feel free to send in another PR, maybe others feel te same. I do recommend you to take a look at the link below as it makes a noticeable difference in performance.
https://docs.docker.com/docker-for-mac/osxfs-caching/#examples
I rather not use docker-sync as well, but I haven't found a better alternative (yet).
"Get the IP address" and "Log in to the container" described in the README don't work (on OSX).
But then it is impossible to connect to a docker container ip (on OSX). https://docs.docker.com/docker-for-mac/networking/#known-limitations-use-cases-and-workarounds
The latest Docker for Mac supports better filesystem support (docker-sync is not needed anymore, or is it still faster ?).
Maybe provide a docker-compose.yml for OSX ? This one will be a good start I think:
https://gist.github.com/mikebranderhorst/8c6dd808a2c44aed5cbce2d74181e4f6