abbshr / dockerenv

setup docker container as your coding env

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ran's working env

Socks Proxy

shadowsocks. U know.

HTTP Proxy

e.g

# /etc/privoxy/config
forward-socks / 127.0.0.1:1080 .
listen-address 127.0.0.1:1081
service privoxy restart

after that,

http_proxy=http://127.0.0.1:1081 wget google.com
curl --socks5 127.0.0.1:1080 google.com

Container's accessibility

Well, here is a ssh solution.

For MacOS, u can access container by ssh tunnel:

# both host and container start sshd first

# inside host: make an alias for host
ifconfig lo0 alias <host-alias-ip>

# inside container
ssh -R <mapping-port-in-host>:localhost:<container-sshd-port> <host-alias-ip>

then,

# inside host
ssh <container>

# inside container
ssh <host>

About

setup docker container as your coding env


Languages

Language:Shell 80.6%Language:Vim Script 17.2%Language:Dockerfile 2.1%