From WikiWiki
Jump to navigation Jump to search

started migrating to

docker login
docker pull homeassistant/home-assistant
mkdir hass
docker run -d --name="home-assistant" -v /home/core/hass:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/home-assistant
docker run -d --device /dev/ttyUSB0:/dev/ttyUSB0 --restart=unless-stopped -v /home/core/hass:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/home-assistant 
docker ps -a
docker attach 16dbd286b2e6
# check on http://192.168.1.x:8123/
docker images
docker rmi imageid
docker start <id>
sudo docker pull nodered/node-red:latest
mkdir nodered
chmod 777
docker run -it -p 1880:1880 -v /home/core/nodered:/data --name mynodered nodered/node-red
# check on port http://192.168.1.x:1880/
# install new pallet -> home assistant
# add an event listener
# add new home assistant server
# click the god damn "deploy server" button if you get a stupid error node red can't connect...

sudo docker build -t p1mon-docker .

docker inspect dockerid
# to find volumes
docker inspect -f '{{ .Mounts }}' containerid

 docker exec -it <id> bash