[g.bagnoli:~] $ sudo systemctl status docker.service docker.service - Docker container management daemon Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled) Active: active (running) since Sat 2013-09-28 13:16:57 BST; 2s ago Main PID: 4180 (docker) CGroup: name=systemd:/system/docker.service └─4180 /usr/bin/docker -d Sep 28 13:16:57 ubik systemd: Starting Docker container management daemon... Sep 28 13:16:57 ubik systemd: Started Docker container management daemon. Sep 28 13:16:58 ubik docker: [29B blob data] Sep 28 13:16:58 ubik docker: 2013/09/28 13:16:58 Listening for HTTP on /var/run/docker.sock (unix) [g.bagnoli:~] $ sudo docker version Go version (client): go1.1.1 Go version (server): go1.1.1 Last stable version: 0.6.3 [g.bagnoli:~] $ uname -a Linux ubik 3.11.1-200.fc19.x86_64 #1 SMP Sat Sep 14 15:04:51 UTC 2013 x86_64 x86_64 x86_64 GNULinux [g.bagnoli:~] $ lsb_release -d Description: Fedora release 19 (Schrödinger’s Cat) [g.bagnoli:~] $ sudo docker run -i -t mattdm/fedora /bin/bash bash-4.2#
More info at: http://goldmann.pl/blog/2013/09/25/docker-and-fedora/
In case you find yourself in a situation where having a VPN is really appreciated (i.e. open WiFI net, public etc.) and you want a quick encrypted tunnel to “escape” such network… sshuttle will do the trick. Easy, fast and.. just works.
I find it really handy:
sshuttle -r $SERVER 0.0.0.0/0
and all your traffic goes through $SERVER. Over ssh. No TCP over TCP. No need to have sudo/su on remote host, just on the local machine to setup iptables. Make sure to understand the implications of using it.
… and you are using ubuntu server: please, please, don’t write complex/buggy shell scripts. Use upstart. It is there, it works, and it’s easy to use. If your platform has systemd, then it’s even better.
And since you are writing apps, don’t do double fork anymore… just let systemd/upstart/supervisor/bluepill/circus/whatever do the job for you. You can even consider socket activation with upstart, systemd and circus if you want to.
If you want to proxy deltacloud thin server with nginx, remember to set
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Proto https;
obviously you need
X-Forwarded-Proto only if you are proxing from https to plain http.
(yes, I was missing
X-Forwarded-Host so link were returned as
Not bad after 2 years of litigation.
We use a lot of Open Source Softwares at Asidev and we must thank the communities and developers to give us great libraries and softwares.
We have contributed to various Open Source Projects by sending back patches, bug fixes and pull requests. Unfortunately, we think it is not enough…
Ok un altro server lasciato sul campo di battaglia (in verità ancora non ho capito cosa ha, s’è spento e basta…); tempo di migrare sul cloud. Ci vuole un IaaS intelligente, in europa, dove un disco è un disco e una vlan una vlan, possibilmente.