How to install Node.js (>8) & Yarn ?

  • Node.js
$curl -sL | sudo -E bash -
$sudo apt-get update && sudo apt-get install -y nodejs
  • Yarn
$curl -sL | sudo apt-key add -
$echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
$sudo apt-get update && sudo apt-get install yarn

How to install AWS CLI ?

$sudo apt install python-pip
$pip install awscli --upgrade --user

You can then configure the CLI with your credentials:

$aws configure

Docker swarm

How to find out why service can't start ?

$docker service ps --no-trunc {serviceName}

How to list nodes with labels ?

$docker node ls -q | xargs docker node inspect -f '{{ .ID }} [{{ .Description.Hostname }}]: {{ .Spec.Labels }}'


Let's Encrypt "300 Multiple Choices" error

If Traefik is getting a 300 Multiple Choices error when generating a Let's Encrypt certificate, it can be linked to the fact that your DNS has a A-Record pointing to the server and an AAAA-Record (IPv6) pointing to a different location. Remove the AAAA-Record to make it work

More details here