This repository was archived by the owner on Apr 1, 2019. It is now read-only.
Migrate to default directory structure.#12
Open
ypid wants to merge 2 commits intopatrickod:masterfrom
Open
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.