Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add addons inside docker file? #9

Open
skywinder opened this issue Aug 28, 2020 · 1 comment
Open

How to add addons inside docker file? #9

skywinder opened this issue Aug 28, 2020 · 1 comment

Comments

@skywinder
Copy link

  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
Copy link

vitpachecol commented Dec 10, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants