michaelmiklis / docker-rpi-monitor

RPI Monitor from RPi-Experiences implemented in a Docker Container
Apache License 2.0
67 stars 34 forks source link

How to add addons inside docker file? #9

Open skywinder opened 4 years ago

skywinder commented 4 years ago
  1. Started via: docker run --device=/dev/vchiq --device=/dev/vcsm --volume=/opt/vc:/opt/vc --volume=/boot:/boot --volume=/sys:/dockerhost/sys:ro --volume=/etc:/dockerhost/etc:ro --volume=/proc:/dockerhost/proc:ro --volume=/usr/lib:/dockerhost/usr/lib:ro -p=8888:8888 --name="rpi-monitor" -d michaelmiklis/rpi-monitor:latest

I attached to docker via:

docker exec -it XXX /bin/bash

Screen Shot 2020-08-29 at 00 30 25

then I found that there is no text editor inside. So how and where should I edit config file?

vitpachecol commented 3 years ago

I'd recommend using the cat - > location/to/file.conf to make edits, but keep in mind that whatever you write there will overwrite the content of the file. So it's best to run cat location/to/file.conf before, copy the entire content, make edits outside of the terminal, and rerun the cat - command then paste the entire thing. You need to press Ctrl + D after pasting the code to store the changes.