Skip to content

Mirocow/docker-compose

Repository files navigation

Docker Box

Create

$ docker network create --driver=bridge --subnet=172.100.1.0/24 --gateway=172.100.1.1 site_loc

Xdebug setup

Get active network`s interface name

$ ifconfig | pcregrep -M -o '^[^\t:]+:([^\n]|\n\t)*status: active' | egrep -o -m 1 '^[^\t:]+'

example: return en0

MacOs Creating or Adding New Network Alias To a Network Card (NIC)

$ sudo ifconfig en0 down
$ sudo ifconfig en0 alias 10.254.254.254 255.255.255.0

Linux Creating or Adding New Network Alias To a Network Card (NIC)

$ sudo ifconfig eno1:0 10.254.254.254 up

Windows

see: https://stackoverflow.com/questions/8944860/how-to-create-an-ip-alias-on-windows

Releases

No releases published

Packages

No packages published