alpine

Can't connect to dockerized tor proxy

对着背影说爱祢 提交于 2020-12-05 11:22:04
问题 On Lubuntu I was able to use tor just by installing it and then connecting to its socks proxy, but on docker with alpine it doesn't seem to be that easy. Since I left my /etc/tor/torrc the way it came, it only consisted of lines that were commented out. So for alpine I just used the torrc.sample file which also only had lines that were commented out. Here is my Dockerfile : FROM alpine:latest RUN apk update && apk upgrade && apk add tor curl && rm /var/cache/apk/* && cp /etc/tor/torrc.sample

Can't connect to dockerized tor proxy

ぃ、小莉子 提交于 2020-12-05 11:21:55
问题 On Lubuntu I was able to use tor just by installing it and then connecting to its socks proxy, but on docker with alpine it doesn't seem to be that easy. Since I left my /etc/tor/torrc the way it came, it only consisted of lines that were commented out. So for alpine I just used the torrc.sample file which also only had lines that were commented out. Here is my Dockerfile : FROM alpine:latest RUN apk update && apk upgrade && apk add tor curl && rm /var/cache/apk/* && cp /etc/tor/torrc.sample

How to set locale in Docker Alpine?

天大地大妈咪最大 提交于 2020-12-05 05:02:55
问题 I can set locale with CentOS image with FROM centos ENV LANG en_US.UTF-8 ENV LC_ALL en_US.UTF-8 But It seems not work with Alpine image. How can I set locale with Alpine image? 回答1: It works for me, Dockerfile: FROM openjdk:8-jdk-alpine RUN apk update RUN apk add tzdata RUN cp /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime RUN rm -r /usr/share/zoneinfo/Africa && \ rm -r /usr/share/zoneinfo/Antarctica && \ rm -r /usr/share/zoneinfo/Arctic && \ rm -r /usr/share/zoneinfo/Asia && \ rm -r