1
0
mirror of /repos/dotTiddlywiki.git synced 2025-12-30 07:31:33 +01:00
This commit is contained in:
Aiko Mastboom 2016-11-15 12:15:14 +01:00
parent 585778d04a
commit ffca730732
3 changed files with 46 additions and 10 deletions

View File

@ -1,6 +1,6 @@
created: 20151217170810197 created: 20151217170810197
creator: user creator: user
modified: 20160422115422097 modified: 20161111190531019
modifier: user modifier: user
tags: docker tags: docker
title: Rancher title: Rancher
@ -22,3 +22,9 @@ docker run --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib
;In this guide, we will create a simple Rancher install, which is a single host installation that runs everything on a single Linux machine. ;In this guide, we will create a simple Rancher install, which is a single host installation that runs everything on a single Linux machine.
:http://docs.rancher.com/rancher/quick-start-guide/ :http://docs.rancher.com/rancher/quick-start-guide/
http://docs.rancher.com/rancher/v1.1/en/installing-rancher/installing-server/basic-ssl-config/
https://github.com/rancher/community-catalog/issues/109
sudo ros config set rancher.docker.args "['daemon','--log-opt','max-size=25m','--log-opt','max-file=2','-s','overlay','-G','docker','-H','unix:///var/run/docker.sock','--userland-proxy=false','--insecure-registry=registry:5000']"

View File

@ -1,6 +1,6 @@
created: 20150304162605686 created: 20150304162605686
creator: user creator: user
modified: 20150313170654627 modified: 20161111190534872
modifier: user modifier: user
tags: docker tags: docker
title: docker registry title: docker registry
@ -14,8 +14,14 @@ docker run \
-e SETTINGS_FLAVOR=local \ -e SETTINGS_FLAVOR=local \
-e STORAGE_PATH=/registry \ -e STORAGE_PATH=/registry \
-p 5000:5000 \ -p 5000:5000 \
-v /registry:/registry -v /registry:/registry \
registry registry
``` ```
* http://stackoverflow.com/questions/26710153/remote-access-to-a-private-docker-registry * http://stackoverflow.com/questions/26710153/remote-access-to-a-private-docker-registry
; How To Set Up a Private Docker Registry on Ubuntu 14.04
: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-private-docker-registry-on-ubuntu-14-04
; Using Lets Encrypt and Docker for Automatic SSL
: http://www.automationlogic.com/using-lets-encrypt-and-docker-for-automatic-ssl/

View File

@ -1,8 +1,8 @@
created: 20150511071117085 created: 20150511071117085
creator: user creator: user
modified: 20161106103317792 modified: 20161112214708856
modifier: user modifier: user
tags: tags: docker [[raspberry pi]]
title: use usb stick with docker title: use usb stick with docker
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki
@ -41,7 +41,7 @@ export http_proxy="http://192.168.2.1:3128/"
# This is also a handy place to tweak where Docker's temporary files go. # This is also a handy place to tweak where Docker's temporary files go.
#export TMPDIR="/mnt/bigdrive/docker-tmp" #export TMPDIR="/mnt/bigdrive/docker-tmp"
export TMPDIR="/mnt/usb/docker-tmp" export TMPDIR=/mnt/usb/docker-tmp"
``` ```
$ cat /etc/systemd/system/docker.service.d/overlay.conf $ cat /etc/systemd/system/docker.service.d/overlay.conf
@ -50,7 +50,7 @@ $ cat /etc/systemd/system/docker.service.d/overlay.conf
[Service] [Service]
ExecStart= ExecStart=
ExecStart=/usr/bin/dockerd --storage-driver overlay -D --graph=/mnt/usb/docker --log-driver=syslog --log-opt syslog-address=udp://nas.aiko.sh:514 --log-opt syslog-format=rfc5424 -H fd:// ExecStart=/usr/bin/dockerd --storage-driver overlay -D --graph=/mnt/usb/docker --log-driver=syslog --log-opt syslog-address=udp://nas.aiko.sh:514 --log-opt syslog-format=rfc5424 -H fd://
Environment="HTTP_PROXY=http://192.168.22.22:3128/" "TMPDIR="/mnt/usb/docker-tmp" Environment="HTTP_PROXY=http://192.168.22.22:3128/" "TMPDIR=/mnt/usb/docker-tmp"
``` ```
@ -78,8 +78,32 @@ UUID=16e0972d-6abf-4369-be0e-5fd2e10a070a /mnt/usb ext4 commit=600,noatime 0 0
#none /var/run tmpfs size=1M,noatime 0 0 #none /var/run tmpfs size=1M,noatime 0 0
none /var/log tmpfs size=1M,noatime 0 0 none /var/log tmpfs size=1M,noatime 0 0
none /var/tmp tmpfs size=1M,noatime 0 0 none /var/tmp tmpfs size=1M,noatime 0 0
none /tmp tmpfs size=12M,noatime 0 0``` none /tmp tmpfs size=12M,noatime 0 0
```
``` ```
tune2fs -c 1 /dev/disk/by-uuid/16e0972d-6abf-4369-be0e-5fd2e10a070a tune2fs -c 1 /dev/disk/by-uuid/16e0972d-6abf-4369-be0e-5fd2e10a070a
``` ```
!!Logging
vi /etc/rsyslog.conf
```
$ActionFileDefaultTemplate RSYSLOG_SyslogProtocol23Format
###############
#### RULES ####
###############
*.* @192.168.22.22:514
```
vi /etc/systemd/journald.conf
```
[Journal]
Storage=none
#Storage=auto
```