Skip to content

Instantly share code, notes, and snippets.

@ailispaw
ailispaw / minimal-docker-hosts.md
Last active November 15, 2019 01:08
メモ:Docker ホスト用軽量 OS の比較
Barge OS RancherOS Boot2Docker
Release 2019/06/11 2019/08/22 2019/11/14
Version 2.13.0 1.5.4 19.03.5
Size 14 MB 130 MB 57 MB
Kernel 4.14.125 4.14.138 4.14.154
User Land Buildroot(glibc) + BusyBox v1.30.1 Buildroot(glibc) + BusyBox v1.27.2 Tiny Core Linux v10.1(glibc) + BusyBox v1.29.3
Docker 1.10.3 (*1) 18.09.8 (*1) 19.03.5
Storage Driver overlay / overlay2 (*2) overlay2 (*3) overlay2 (*3)
TLS (*4)
func Escape(sql string) string {
dest := make([]byte, 0, 2*len(sql))
var escape byte
for i := 0; i < len(sql); i++ {
c := sql[i]
escape = 0
switch c {
case 0: /* Must be escaped for 'mysql' */