docker host networks

main
YIk Teng Hie 5 years ago
parent e1ee8933dd
commit b15ad4ba1d

@ -225,3 +225,7 @@ services:
$ docker-compose down -v
```
## Host Networking [link](https://docs.docker.com/docker-for-windows/networking/)
* `host.docker.internal` or `gateway.docker.internal`

@ -42,6 +42,8 @@ $ ssh -L [local port]:[database host]:[remote port] [username]@[remote host]
// example
$ ssh -L 3306:rr-zf81fzm6ija52q623.mysql.kualalumpur.rds.aliyuncs.com:3306 tenghieyik@172.22.4.252
$ ssh -L host.docker.internal:3306:rr-zf81fzm6ija52q623.mysql.kualalumpur.rds.aliyuncs.com:3306 tenghieyik@172.22.4.252
```
* dump

Loading…
Cancel
Save