Docker
Jump to navigation
Jump to search
Networking sometimes stops working just delete the old
docker network rm publicnet
and create new
docker network create -d macvlan --gateway 172.16.0.1 --ip-range 172.16.0.32/27 --subnet 172.16.0.0/24 publicnet -o parent=lxcbr1
docker network create -d bridge public20 --subnet 172.20.0.0/16
Create docker-compose from running container
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock red5d/docker-autocompose CONTAINERNAME