This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.
Step 1 - Enable NBD on the Host
modprobe nbd max_part=8
| 1.0.17.172.in-addr.arpa | |
| 107.0.168.192.in-addr.arpa | |
| 1.122.168.192.in-addr.arpa | |
| 1.48.168.192.in-addr.arpa | |
| 1d.tlu.dl.delivery.mp.microsoft.com | |
| 2.au.download.windowsupdate.com | |
| 3.1.2.e.2.d.e.f.f.f.e.a.0.7.8.7.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa | |
| a.2.3.f.7.6.e.f.f.f.0.0.4.5.c.f.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa | |
| acctcdn.msauth.net | |
| acctcdn.msftauth.net |
| docker logs nginx 2>&1 | grep "127." | |
| # ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container |
| version: '2.1' | |
| services: | |
| mysql: | |
| container_name: mysql | |
| image: mysql:5.7 | |
| ports: | |
| - "13306:3306" | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=Welcome123 | |
| healthcheck: |
| #!/usr/bin/env bash | |
| # | |
| # This is sp, the command-line Spotify controller. It talks to a running | |
| # instance of the Spotify Linux client over dbus, providing an interface not | |
| # unlike mpc. | |
| # | |
| # Put differently, it allows you to control Spotify without leaving the comfort | |
| # of your command line, and without a custom client or Premium subscription. | |
| # |
| # 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 | |