Skip to content

Latest commit

 

History

History
73 lines (47 loc) · 1.67 KB

README.md

File metadata and controls

73 lines (47 loc) · 1.67 KB

Usefull comands while working with docker containers

  • These comands avalible for Linux and MacOS operating systems.

Installation

  • In order to install comands you require to have sudo privileged. if below comand does not work try with sudo.

Use curl to install comands.

$ curl -LO https://raw.githubusercontent.com/munisisazade/docker-helper-commands/master/install.sh && bash install.sh

List of Usefull Comands

build-docker
down-docker
connect-docker
dangling-remove-docker
restart-docker
migrate-docker
logs-docker
backup-database-docker
restore-database-docker

Usage

build-docker
Building multi-containers. Comand should given where your docker-compose file exist. 

down-docker
Stoping runnig multi-containers in the directory.

connect-docker
Executing inside running docker container, with bash. 
ex: connect-docker bash container_id 

dangling-remove-docker
This comand removes Inactive containers and stalled images.

restart-docker
This comand restarting multi-containers in the given directory.

migrate-docker
The comand useful for django projects in case you have migration file and needs to migrated to DB.
ex: migrate-docker container_name_or_id

logs-docker
This comand tailing logs of multi-containers in the given directory.

backup-database-docker
Taking backup file of running Postgres container.


restore-database-docker
Restoring runnig postgres container.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT