Source https://gist.github.com/Swiss-Mac-User/8cc5a5e688f1b22d2c17b865649201d8
brew install docker --cask
from /Applications/Docker.app
Source https://gist.github.com/Swiss-Mac-User/8cc5a5e688f1b22d2c17b865649201d8
brew install docker --cask
from /Applications/Docker.app
With Windows Containers, as with any application, you will need to consider your logging strategy. In the containers world it is generally accepted to log to STDOUT/STDERR (standard out and standard error). As you scale up your services you will need to aggregate and store these logs for analysis and debugging later on. There exist many back end systems to aggregate logs and help with analysis, in Azure you have Log Analytics and Application Insights.
There are two general strategies for configuring your containers to send logs to a backend logging system containers:
| ID,Comune,Classe di priorità,Fonte,Area di riferimento | |
| 1,Acciano,Alto,"Ministero dell'Ambiente, mappatura amianto 2013",Abruzzo | |
| 2,Acciano,Basso,"Ministero dell'Ambiente, mappatura amianto 2013",Abruzzo | |
| 3,Aielli,Alto,"Ministero dell'Ambiente, mappatura amianto 2013",Abruzzo | |
| 4,Aielli,Alto,"Ministero dell'Ambiente, mappatura amianto 2013",Abruzzo | |
| 5,Aielli,Alto,"Ministero dell'Ambiente, mappatura amianto 2013",Abruzzo | |
| 6,Aielli,Alto,"Ministero dell'Ambiente, mappatura amianto 2013",Abruzzo | |
| 7,Alfedena,Alto,"Ministero dell'Ambiente, mappatura amianto 2013",Abruzzo | |
| 8,Anversa Degli Abruzzi,Alto,"Ministero dell'Ambiente, mappatura amianto 2013",Abruzzo | 
| > docker run --rm -t -i --logger d2-syslog --profile privileged --net d2 --net b2 alpine ip a | |
| 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000 | |
| link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 | |
| inet 127.0.0.1/8 scope host lo | |
| valid_lft forever preferred_lft forever | |
| inet6 ::1/128 scope host | |
| valid_lft forever preferred_lft forever | |
| 3: eth0@if28: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP | |
| link/ether b2:da:6d:61:18:56 brd ff:ff:ff:ff:ff:ff | |
| inet 10.10.0.52/24 brd 10.10.0.255 scope global eth0 | 
| DUMP | |
| // pod-name name of the postgres pod | |
| // postgres-user database user that is able to access the database | |
| // database-name name of the database | |
| kubectl exec [pod-name] -- bash -c "pg_dump -U [postgres-user] [database-name]" > database.sql | |
| RESTORE | |
| // pod-name name of the postgres pod | |
| // postgres-user database user that is able to access the database | |
| // database-name name of the database | 
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: nginx-conf | |
| data: | |
| nginx.conf: | | |
| user nginx; | |
| worker_processes 3; | |
| error_log /var/log/nginx/error.log; | |
| events { | 
| # Cluster management tools. | |
| # See https://github.com/grampelberg/k8s-clusters for updates and documentation. | |
| export CLUSTER_NAME ?= $(shell cat tmp/current 2>/dev/null || echo $$(whoami)-dev) | |
| export MACHINE_TYPE ?= n1-standard-2 | |
| export DISK_SIZE ?= 100 | |
| export MAX_NODES ?= 10 | |
| export NETWORK ?= dev | |
| export PROJECT ?= foobar | |
| export VERSION ?= latest |