Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.
/ gazes-utils Public archive

A light tools utility for manipulating dockers, nginx and other things like that !

License

Notifications You must be signed in to change notification settings

gazes-media/gazes-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gazes-utils

Why this project ?

I always get bored writing the same commands over and over again when I'm working with Docker. So I decided to create a script to automate the process. And make it easier to use Docker, especially for beginners.

Installation

(Debian/Ubuntu) [HTTPS]

git clone https://github.com/Deril-fr/gazes-utils && cd gazes-utils && ./setup.sh

(Debian/Ubuntu) [SSH]

git clone [email protected]:Deril-fr/gazes-utils.git && cd gazes-utils && ./setup.sh

PS: Be sure to have the right permissions to execute the script. (after that it will be added to usr/local/bin)

Bug with CR/LF on Linux

If you have a bug with the script, it's probably because of the CR/LF. You can fix it by running this command:

find . -type f -exec sed -i 's/\r$//' {} \; # Do it before executing setup.sh

Commands

Docker-run

Description

Start a new container with the specified image, container name and port in daemon mode.

Usage

gazes run <port> <container-name> <image-name>

Example

gazes run 8080 my-container my-image

Docker-clean

Description

Stop and remove a Docker container. Pull the latest image. Start a new container with the updated image, using the same ports if specified and the same container name. Check if the new and old images are the same. If they are different, remove the old image.

[WARNING]: Use this only for an unique container and only with images from the same repository.

Usage

docker-clean <container-name> <image-name>

Example

docker-clean my-container my-image

License

MIT

About

A light tools utility for manipulating dockers, nginx and other things like that !

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages