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"]}
/* | |
* Sending an email using kotlin and Apache Commons Email | |
* | |
* Usage: java -jar app.jar <user> <password> <from> <to> <cc> | |
*/ | |
package main.kotlin.sendmail | |
import org.apache.commons.mail.Email | |
import org.apache.commons.mail.EmailException | |
import org.apache.commons.mail.HtmlEmail |
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 bash | |
# treeを擬似的に再現したスクリプト | |
dir_count=0 | |
file_count=0 | |
traverse() { | |
dir_count=$(expr $dir_count + 1) | |
local directory=$1 | |
local prefix=$2 |
... | |
# Fake a fuse install | |
RUN apt-get install libfuse2 | |
RUN cd /tmp ; apt-get download fuse | |
RUN cd /tmp ; dpkg-deb -x fuse_* . | |
RUN cd /tmp ; dpkg-deb -e fuse_* | |
RUN cd /tmp ; rm fuse_*.deb | |
RUN cd /tmp ; echo -en '#!/bin/bash\nexit 0\n' > DEBIAN/postinst | |
RUN cd /tmp ; dpkg-deb -b . /fuse.deb |