I see Docker mentioned every other thread and was wondering how useful it is for non development things, and if so what they are.

  • JoeCoT@fedia.io
    link
    fedilink
    arrow-up
    9
    ·
    9 months ago

    So it’s always going to be used for technical things, but not necessarily development things. I use it for both.

    For my home server setup I have docker setup like this:

    1. A VPN docker container
    2. A transmission (bittorrent client) container, using the VPN’s network
    3. An nginx (web server) container, which provides access to the transmission container
    4. A 3proxy socks proxy container, using the VPN’s network
    5. A tor client container
    6. A 3proxy socks proxy container, using the tor container’s network

    Usually it’s pretty hard to say “these specific programs and only these should run over my VPN”. Docker makes that easy. I can just attach containers to the same network as my VPN container, and their traffic will all go over the VPN. And then with my socks proxies I can selectively put my browser traffic over either the VPN or Tor, using extensions like FoxyProxy. I watch wrestling through my vpn because it’s cheaper overseas and has better streaming options, so I have those specific sites set to route through my VPN socks proxy. And I have all onion links set to go through my Tor proxy.

    • Amongussussyballs100OP
      link
      fedilink
      English
      arrow-up
      3
      ·
      9 months ago

      This looks like an interesting project. Can the vpn container only route traffic that are in other containers, or can regular applications get their traffic routed by the vpn container too?

      • JoeCoT@fedia.io
        link
        fedilink
        arrow-up
        3
        ·
        9 months ago

        I don’t know of a good way to route other application’s traffic through the VPN container with them being in docker containers, unless you use some intermediary setup. That’s why I have socks proxies routed through the VPN, so I can selectively put traffic through it. If the app supports a socks proxy you could do it that way. At the least you could use Proxychains to do so if the program does TCP networking.

      • calm.like.a.bomb@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        edit-2
        9 months ago

        The answer is yes in both cases.

        1. Docker has an internal networking setup. You can create a “network” and all containers in that network communicate with each other, but not with other containers in other networks. So you can set up a VPN container in a network and all containers in that netowrk could use the VPN to route their traffic through.
        2. You can configure your VPN container to expose some ports that it uses to communicate, and then the “regular applications” can make use of those ports to connect through the VPN.