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"]}
| using BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Columns; | |
| using BenchmarkDotNet.Configs; | |
| using BenchmarkDotNet.Jobs; | |
| using BenchmarkDotNet.Reports; | |
| using System; | |
| using System.Text; | |
| namespace Benchmarks | |
| { |
| # syntax=docker/dockerfile:1 | |
| # Keep this syntax directive! It's used to enable Docker BuildKit | |
| # Based on https://github.com/python-poetry/poetry/discussions/1879?sort=top#discussioncomment-216865 | |
| # but I try to keep it updated (see history) | |
| ################################ | |
| # PYTHON-BASE | |
| # Sets up all our shared environment variables | |
| ################################ |
| # syntax=docker/dockerfile:1 | |
| # Keep this syntax directive! It's used to enable Docker BuildKit | |
| # Based on https://github.com/python-poetry/poetry/discussions/1879?sort=top#discussioncomment-216865 | |
| # but I try to keep it updated (see history) | |
| ################################ | |
| # PYTHON-BASE | |
| # Sets up all our shared environment variables | |
| ################################ |
| class Program { | |
| static void Main(string[] args) { | |
| var query = "select A.ID, A.NAME from (select ID, NAME from BAR) A where A.ID = '1'"; | |
| var parser = new TSql120Parser(false); | |
| IList<ParseError> errors; | |
| var parsedQuery = parser.Parse(new StringReader(query), out errors); | |
| if (errors.Count > 0) { | |
| foreach (var err in errors) { | |
| Console.ForegroundColor = ConsoleColor.Red; | |
| Console.WriteLine(err.Message); |
| // port of http://stackoverflow.com/questions/8870261/how-to-split-text-without-spaces-into-list-of-words | |
| var _ = require('lodash') | |
| var fs = require('fs') | |
| var tape = require('tape') | |
| var dictStr = fs.readFileSync(__dirname + '/dump/words-by-freq.txt', 'utf8') | |
| var wordsByFreq = dictStr.split('\n') | |
| var maxWord = 0 |
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"]}