Bartłomiej Skwira @ CodeQuest.com
Settings -> Cloud Providers -> Connect Provider
web:
image: 'dockercloud/hello-world:latest'
target_num_containers: 2
lb:
image: 'dockercloud/haproxy:1.5.3'
links:
- web
ports:
- '80:80'
roles:
- global$ docker run -v /root:/user -e AUTHORIZED_KEYS=" \
`cat ~/.ssh/id_rsa.pub`" dockercloud/authorizedkeys
authorizedkeys:
image: dockercloud/authorizedkeys
deployment_strategy: every_node
autodestroy: always
environment:
- AUTHORIZED_KEYS=ssh-rsa AAAAB3NzaC1y....
volumes:
- /root:/user:rw$ scp production_db root@46.101.104.219:/path$ ssh root@46.101.104.219
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-78-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Sun Jul 2 11:43:50 UTC 2017
System load: 0.03
Usage of /: 13.0% of 29.40GB
Memory usage: 77%
Swap usage: 0%
Processes: 147
Users logged in: 0
IP address for eth0: 207.154.214.150
IP address for eth1: 10.135.8.27
IP address for docker0: 172.17.0.1
IP address for weave: 10.7.255.254
IP address for docker_gwbridge: 172.18.0.1
Graph this data and manage this system at:
https://landscape.canonical.com/
31 packages can be updated.
25 updates are security updates.
Your Hardware Enablement Stack (HWE) is supported until April 2019.
Last login: Sun Jul 2 10:33:22 2017 from 78-10-217-220.static.ip.netia.com.pl
root@00f64e06-58c2-4936-92c7-538965d7a706:~#$ docker cp production_db container_name:/path/production_db