diff --git a/mywiki/tiddlers/LXC LXD.tid b/mywiki/tiddlers/LXC LXD.tid new file mode 100644 index 0000000..53e7da8 --- /dev/null +++ b/mywiki/tiddlers/LXC LXD.tid @@ -0,0 +1,20 @@ +created: 20150810160046389 +creator: user +modified: 20150810160243491 +modifier: user +tags: docker +title: LXC LXD +type: text/vnd.tiddlywiki + +; Getting started with LXD – the container lightervisor +: https://insights.ubuntu.com/2015/04/28/getting-started-with-lxd-the-container-lightervisor/ + +; A Quick Introduction to LXD +: http://blog.scottlowe.org/2015/05/06/quick-intro-lxd/ + +; Skipping Docker for LXC for Local Development. +: http://michaeldehaan.net/post/111599240017/skipping-docker-for-lxc-for-local-development + +; Understanding the key differences between LXC and Docker +: https://www.flockport.com/lxc-vs-docker/ + diff --git a/mywiki/tiddlers/Restart docker container.tid b/mywiki/tiddlers/Restart docker container.tid new file mode 100644 index 0000000..0fc35ff --- /dev/null +++ b/mywiki/tiddlers/Restart docker container.tid @@ -0,0 +1,23 @@ +created: 20150810153834598 +creator: user +modified: 20150810160033080 +modifier: user +tags: docker +title: Restart docker container +type: text/vnd.tiddlywiki + +The ~RestartPolicy is in the hostconfig, assuming a distro layout + +docker inspect --format="/var/lib/docker/containers/{{.Id}}/hostconfig.json" + +I'm not sure if you can use the API to overwrite the hostconfig (may be worth requesting a modify handler here) + +```bash +docker inspect --format="/var/lib/docker/containers/{{.Id}}/hostconfig.json" +sudo cat /var/lib/docker/containers/596494fa04395fafad04e07160970a0848543fef5b961cf6a545481eaa69b200/hostconfig.json +``` +```json +{ "Binds":null, "ContainerIDFile":"", "LxcConf":[], "Privileged":false, "PortBindings":{ "8000/tcp":[ { "HostIp":"", "HostPort":"8000" } ] }, "Links":null, "PublishAllPorts":false, "Dns":null, "DnsSearch":null, "ExtraHosts":null, "VolumesFrom":null, "Devices":[], "NetworkMode":"bridge", "IpcMode":"", "CapAdd":null, "CapDrop":null, "RestartPolicy":{ "Name":"on-failure", "MaximumRetryCount":0 }, "SecurityOpt":null } +``` + +You can just remove the ~RestartPolicy from the hostconfig.json after you've run docker kill but clearly that's not a supported way, but may get you out of this. diff --git a/mywiki/tiddlers/docker logging.tid b/mywiki/tiddlers/docker logging.tid new file mode 100644 index 0000000..f6f7922 --- /dev/null +++ b/mywiki/tiddlers/docker logging.tid @@ -0,0 +1,16 @@ +created: 20150810155914746 +creator: user +modified: 20150810160026825 +modifier: user +tags: docker +title: docker logging +type: text/vnd.tiddlywiki + +; logstash +: https://github.com/elastic/logstash + +; Automating Docker Logging: ElasticSearch, Logstash, Kibana, and Logspout +: http://nathanleclaire.com/blog/2015/04/27/automating-docker-logging-elasticsearch-logstash-kibana-and-logspout/ + +; logspout +: https://github.com/gliderlabs/logspout diff --git a/mywiki/tiddlers/etcd docker.tid b/mywiki/tiddlers/etcd docker.tid new file mode 100644 index 0000000..823391d --- /dev/null +++ b/mywiki/tiddlers/etcd docker.tid @@ -0,0 +1,13 @@ +created: 20150810155746421 +creator: user +modified: 20150810155902674 +modifier: user +tags: docker +title: etcd docker +type: text/vnd.tiddlywiki + +; Docker Service Discovery Using Etcd and Haproxy +: http://jasonwilder.com/blog/2014/07/15/docker-service-discovery/ + +; How To Use Confd and Etcd to Dynamically Reconfigure Services in ~CoreOS +: https://www.digitalocean.com/community/tutorials/how-to-use-confd-and-etcd-to-dynamically-reconfigure-services-in-coreos \ No newline at end of file diff --git a/mywiki/tiddlers/ntp.tid b/mywiki/tiddlers/ntp.tid new file mode 100644 index 0000000..45bd636 --- /dev/null +++ b/mywiki/tiddlers/ntp.tid @@ -0,0 +1,9 @@ +created: 20150810123100227 +creator: user +modified: 20150810123123040 +modifier: user +tags: +title: ntp +type: text/vnd.tiddlywiki + +boot2docker ssh -- "date ; sudo /usr/local/bin/ntpclient -s -h pool.ntp.org ; date" \ No newline at end of file