See this issue.
Docker best practise to Control and configure Docker with systemd.
-
Create
daemon.jsonfile 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"]}
| #!/usr/bin/env python3 | |
| """ reads and parses sensor data from ypyt cloud for given device token """ | |
| # see https://github.com/xoseperez/espurna/issues/1644 for more context | |
| import json | |
| import os | |
| import sys | |
| import paho.mqtt.client as mqtt | |
| import time as t |
| const grid = [ | |
| [0, 2, 4, 0, 3, 7, 0, 0, 0], | |
| [0, 0, 9, 0, 2, 6, 3, 0, 0], | |
| [0, 0, 0, 0, 5, 0, 2, 0, 0], | |
| [0, 0, 3, 0, 0, 2, 0, 7, 1], | |
| [0, 6, 1, 0, 4, 0, 0, 0, 0], | |
| [2, 5, 7, 0, 0, 8, 0, 9, 0], | |
| [7, 0, 2, 0, 1, 0, 5, 0, 0], | |
| [0, 0, 0, 0, 0, 4, 1, 0, 9], |