Skip to content

🍫Our internal set of utilities to manage Docker containers

License

Notifications You must be signed in to change notification settings

lotrekagency/doacker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

⚠️ Only PostgreSQL and MySQL supported at the moment.

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>

About

🍫Our internal set of utilities to manage Docker containers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages