Code Monkey home page Code Monkey logo

docker-helper-commands's Introduction

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

docker-helper-commands's People

Contributors

munisisazade avatar sabuhish avatar

Stargazers

David Dennison avatar Erkin avatar Hasan Aliyev avatar Murad Rustamzade avatar Tural avatar  avatar Bunyad Ahmadli avatar Idris Shabanli avatar Hesen Tagiyev avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

docker-helper-commands's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.