Skip to content →

Tag: docker

Docker Based Torrent Client

Easy way to run rtorrent in Docker is using Docktorrent like this:

 

Use –net-alias in Docker for Easy Round Robin Load Balancing

Something I picked up on a few days ago was using Docker’s –net-alias command (or docker-compose equivalent) for cheap and easy round robin load balancing. For example, start two elasticsearch containers with –net-alias search and from within the network, using the ‘search’ as the DNS name for connecting, you’d get 1 of the 2 servers at random.

Use nano in Docker containers

If for some reason you find yourself needing to use nano in a Docker container, you can set the terminal type and then you’ll be able to use it. Say for example you ran bash with the exec command, you can then run:

and it’ll allow you to use the terminal as normal for nano/clear etc.

Making Local Development Faster with Caches for NPM & Composer (Part One: NPM)

This is the first post in a two part series detailing how you can use Docker to run local caches of both remote NPM resources and composer packages.

After the image has been pulled down, you can run it and map to a port using the following syntax:

This will run sinopia and bind the external interface to port…

Docker + rtorrent = Docktorrent

I download a lot of linux images, by far the quickest way is via torrent. Recently discovered a nice implementation of rtorrent in a Docker image, via docktorrent, simple enough to run:

The 31405 is the public facing port for the web interface, make sure that you forward both 9527 and 45566 as it’ll need those to run.