Docker: Difference between revisions

From WikiWiki
Jump to navigation Jump to search
No edit summary   (change visibility)
No edit summary   (change visibility)
Line 26: Line 26:


* sudo docker build -t p1mon-docker .
* sudo docker build -t p1mon-docker .
* docker inspect dockerid
to find volumes
* docker inspect -f '{{ .Mounts }}' containerid

Revision as of 14:56, 2 March 2021

  • docker login
  • docker pull homeassistant/home-assistant
  • mkdir hass
  • pwd
  • 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
  • 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
  • http://192.168.1.x:1880/
  • install new pallet -> home assistant
  • add an event listerner
  • 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