Pure goodness! 🐳Our internal set of utilities to manage Docker containers
sudo curl -L https://github.com/lotrekagency/doacker/archive/master.tar.gz | tar xvfz - --strip 2 -C /usr/local/bin/
A set of utilities to manage containers.
This command stop all containers
docker-stopall
This command removes all stopped containers
docker-removeall
This command stop and removes all containers
docker-clean
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
This command creates a database sql dump.
docker-dbdump <container>
This command restores a database dump.
docker-dbrestore <container> <sqldump>