Doacker 🍫
Pure goodness! 🐳Our internal set of utilities to manage Docker containers
Installation
sudo curl -L https://github.com/lotrekagency/doacker/archive/master.tar.gz | tar xvfz - --strip 2 -C /usr/local/bin/
📦Manage containers
A set of utilities to manage containers.
Docker Stop All
This command stop all containers
docker-stopall
Docker Remove All
This command removes all stopped containers
docker-removeall
Docker Clean
This command stop and removes all containers
docker-clean
🗃Dump and Restore databases
A set of utilities to dump and restore database, very useful during nightly backups.
Required env variables for MySQL
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
Required env variables for PostgreSQL
- POSTGRES_USER
- POSTGRES_DB
Docker Db Dump
This command creates a database sql dump.
docker-dbdump <container>
Docker Db Restore
This command restores a database dump.
docker-dbrestore <container> <sqldump>