Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

tsdragon/dockercontrol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

I'm archiving this as basically everything in here has been superceded by docker compose.

dockercontrol

This is just a simple set of scripts to help me update/manage/rebuild the docker images on my server

simple usage is just copy them somewhere, create some scripts to build the containers (included a hello-workd container as an example) then run either rebuild_all or rebuild_container

rebuild_all

rebuild_all is used when you want to rebuild all, or at least a bunch of containers all at once. you can tell it to nuke everything, carefully rebuild all the images one by one, or just specify a few you'd like to rebuild.

It will also restart the containers once they're rebuilt automatically, inless you specify not to reboot any containers. You can also pass in individual container names to skip rebooting.

Usage: rebuild_all [option...] -c containername -c containername... -e containername -e containername...

  -n,       Nuke, completely wipe ALL containers (USE EXTREME CAUTION)
  -d,       Don't restart the containers
  -c name,  Manually give list of containers to rebuild instead of rebuilding all of them
  -e name,  Don't restart this container like the others

rebuild_container

rebuild_container is used by rebuild_all but can be used on its own to rebuild contianers. Just create a build script (The filename must be the same as the container name!) then run rebuild_container.

You can specify options to stop, remove, and rmi the container and image before it's rebuilt if needed.

Usage: rebuild_container [option...] -n containername

  -n name,  Specify container name (required)
  -x,       Stop the container
  -r,       Remove the container
  -i,       Remove the container image
  -s,       Restart the container after execution

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages