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 move owntracks to another host? #91

Open
segdy opened this issue Jan 11, 2025 · 2 comments
Open

How to move owntracks to another host? #91

segdy opened this issue Jan 11, 2025 · 2 comments

Comments

@segdy
Copy link

segdy commented Jan 11, 2025

I have setup owntracks many years ago as docker container. I don't remember exactly what I did and I normally don't use docker, so no idea how to move it. I searched a bit about docker but quickly getting overwhelmed: export vs save, commit, data volumes, persistance of parameters ...

I have this:

# docker ps|grep own
48bbeb130c73   owntracks/recorder           "/entrypoint.sh"         3 years ago     Up 4 months             0.0.0.0:8083->8083/tcp, :::8083->8083/tcp   musing_knuth

What is the best way to move this to a different host, preserving everything?

@jpmens
Copy link
Member

jpmens commented Jan 11, 2025

I hope someone versed in Docker will chime in as, as usual, "it depends". I think it mainly depends on whether, at the time, you created a volume for OwnTracks data or not, and if so that needs to be exported as well. I cannot answer your question.

Moving this issue to the docker-recorder repo so as to attract attention there.

@jpmens jpmens transferred this issue from owntracks/talk Jan 11, 2025
@segdy
Copy link
Author

segdy commented Jan 13, 2025

Thanks. Unfortunately I don't remember at all how I set it up.

# docker ps
CONTAINER ID   IMAGE                        COMMAND                  CREATED         STATUS                  PORTS                                       NAMES
48bbeb130c73   owntracks/recorder           "/entrypoint.sh"         3 years ago     Up 4 months             0.0.0.0:8083->8083/tcp, :::8083->8083/tcp   musing_knuth

Based on this post:

docker ps -a --format '{{ .ID }}' | xargs -I {} docker inspect -f '{{ .Name }}{{ printf "\n" }}{{ range .Mounts }}{{ printf "\n\t" }}{{ .Type }} {{ if eq .Type "bind" }}{{ .Source }}{{ end }}{{ .Name }} => {{ .Destination }}{{ end }}{{ printf "\n" }}' {}

/musing_knuth

        volume 9dce24975e359949d77fc61deecab6f464e4e014f34d915f1137c6e68757ea89 => /config
        volume owntracks_store => /store

I guess this suggests there is a volume? Or even two? I am also not sure how this container was set up in terms of environment variables or command line arguments.

How would I go from here?

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