Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Migrate to default directory structure. #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ypid
Copy link
Contributor

@ypid ypid commented May 1, 2015

Based on #9.
This PR needs testing. For me the persistent volume somehow does not work. I use it with -v /srv/tor:/var/lib/tor.

…od#8.

* Debian is the recommended base image for Docker.
  See https://docs.docker.com/articles/dockerfile_best-practices/#from
* Changed volume of tor home dir to the default one /var/lib/tor.
  Note that when I do `docker rm … && docker run …` docker will not use
  the previously used volume but instead create a new container
  resulting in a new private key being generated.
  I use `docker run -v /srv/tor:/var/lib/tor` for persistent storage.
* https://www.torproject.org/docs/debian.html.en
* apt automatically checks packages with GPG. Related to patrickod#8.
* Using apt_preferences to ensure that packages from deb.torproject.org are
  preferred. Without this, all packages are installed from the Debian repository.
  See `man apt_preferences`.
* One could also run tor inside the Docker container as debian-tor user.
  But note that the UID of debian-tor might be mapped to a different user
  outside of the container resulting in read+write access for this user
  to the private key.
@ypid ypid changed the title Migrate to default dir Migrate to default directory structure. May 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant