AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Vmware fusion on m1 macbook8/14/2023 ![]() On Mac Docker runs a Linux VM and then the containers run in that. I'd just have to put the container IP on the db. /etc/hosts entry. That would also work great if I were running Linux instead of Mac OS, because Docker containers on Linux get IP addresses that are visible. The VM gets an IP address on my Mac, and I use that in the /etc/hosts entry. So I want to make an /etc/hosts entry for db. giving the IP address of the VM or container that I'm running the test server in. I want to run a test version of that server on a VM or in a container, and have that client connect to it, but I do not want to modify the client. I don't want to run the client in a VM or container. The typical case is that I'm testing with client code on my desktop that expects to talk to some particular server, such as db., on some particular port, say 3306. Aliases on the Mac to bring up, take down, and show the tunnel on the Linux VM:Īlias linux-wg-up='docker container run -it -rm -privileged -pid=host -v ~/wg/linux-vm:/wg alpine-wg nsenter -t 1 -u -n -i wg-quick up /wg/nf'Īlias linux-wg-down='docker container run -it -rm -privileged -pid=host -v ~/wg/linux-vm:/wg alpine-wg nsenter -t 1 -u -n -i wg-quick down /wg/nf'Īlias linux-wg-show='docker container run -it -rm -privileged -pid=host -v ~/wg/linux-vm:/wg alpine-wg nsenter -t 1 -u -n -i wg show'.Sudo wg-quick down /Users/tzs/wg/mac/wg.conf ![]() Sudo wg-quick up /Users/tzs/wg/mac/wg.conf
0 Comments
Read More
Leave a Reply. |