1
0
mirror of /repos/dotTiddlywiki.git synced 2025-12-30 07:31:33 +01:00
This commit is contained in:
Aiko Mastboom 2015-08-22 20:27:42 +02:00
parent 4a70fab535
commit 2b781334ae
5 changed files with 81 additions and 0 deletions

View File

@ -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/

View File

@ -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" <container>
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" <container>
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.

View File

@ -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

View File

@ -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

9
mywiki/tiddlers/ntp.tid Normal file
View File

@ -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"