Difference between revisions of "Docker"
From Briki
(Created page with "== Docker == === Creating a dedicated IP for a home-assistant docker container === sudo docker network create -d macvlan --gateway 192.168.1.1 --subnet 192.168.1.0/24 --ip...") |
(→Docker) |
||
Line 1: | Line 1: | ||
− | == | + | == Useful Commands == |
+ | |||
+ | ; docker ps -a: List all containers | ||
=== Creating a dedicated IP for a home-assistant docker container === | === Creating a dedicated IP for a home-assistant docker container === |
Revision as of 20:22, 14 March 2019
Useful Commands
- docker ps -a
- List all containers
Creating a dedicated IP for a home-assistant docker container
sudo docker network create -d macvlan --gateway 192.168.1.1 --subnet 192.168.1.0/24 --ip-range 192.168.1.231/32 -o eth0 homeassistant-net sudo docker run --init -d --name="home-assistant" -v /var/lib/homeassistant:/config -v /etc/localtime:/etc/localtime:ro --net homeassistant-net homeassistant/home-assistant