$ docker ps -q -a | xargs docker rm
- -q prints only the container IDs
- -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID
| <% flash.each do |type, message| %> | |
| <div class="alert <%= bootstrap_class_for(type) %> fade in"> | |
| <button class="close" data-dismiss="alert">×</button> | |
| <%= message %> | |
| </div> | |
| <% end %> |
| // layout file | |
| <body> | |
| <div class="container"> | |
| <%= flash_messages %> | |
| <%= yield %> | |
| </div><!-- /container --> | |
| </body> |
| 官網下載 | |
| https://devcenter.heroku.com/articles/heroku-cli | |
| 安裝heroku-windows-amd64.exe | |
| 安裝完Heroku 會安裝Git | |
| 預設資料夾是 | |
| C:\Program Files\Heroku | |
| C:\Program Files\Git |
| [Settings] | |
| Priority=FallbackDeployRoot, DefaultGateway, Default | |
| [FallbackDeployRoot] | |
| ; Default deployment root in case of failure in the next step with the gateway selection | |
| DeployRoot=\\CZ-PRG-MDT\ClientDeploymentShare$ | |
| [DefaultGateway] | |
| ; Based on the default gateway we will select corresponding location section | |
| 172.24.39.254=CZ-PRAHA |
This script can be used to backup essential configuration files from the Proxmox Virtual Enivronment (PVE) host.
The script will create backups using tar with specified backup prefix and date and time stamp in the file name. Script will also delete backups that are older then number of days specified.
To create backup script that will be executed every day we can create backup script in /etc/cron.daily/ folder. We need to make it writeable by root (creator) only, but readable and executable by everyone:
touch /etc/cron.daily/pvehost-backup