See this issue.
Docker best practise to Control and configure Docker with systemd.
-
Create
daemon.json
file in/etc/docker
:{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
See this issue.
Docker best practise to Control and configure Docker with systemd.
Create daemon.json
file in /etc/docker
:
{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
We need Java in order to have Cassandra running since Cassandra 2.0 and later require Java 7 or later. And we need Cassandra in order to run Kong.
So lets start installing Java 8 (the newest one)
First we add a repository to our build in order to manage the Java 8 package, since that is not normally supported by Ubuntu.
sudo add-apt-repository ppa:webupd8team/java
#!/bin/sh | |
#Check the Drive Space Used by Cached Files | |
du -sh /var/cache/apt/archives | |
#Clean all the log file | |
#for logs in `find /var/log -type f`; do > $logs; done | |
logs=`find /var/log -type f` | |
for i in $logs |
# /etc/nginx/geoblocker | |
# This will block anything but the defined countries and the networks defined in the $localnet variable | |
set $geoblock 0; | |
if ($geoip_country_code !~ (DK|NO|SE)) { set $geoblock 1; } | |
if ($localnet = 1){ set $geoblock 0; } | |
if ($geoblock = 1){ return 403; } |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.