container-updater

command module
v0.0.0-...-90844aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 2 Imported by: 0

README

Container updater

As the name says, this is a (currently only for docker) basic container updater.

This is currently a very basic MVP/proof of concept that I created for personal use!

How to

This (currently) only supports starting/replacing container images.

You start/replace images by sending a POST request with a json payload that looks like this (this is probably going to change):

{
    "Image": "some/image:tag",
	"PortBindings": [
		{
			"HostIP": "127.0.0.1",
			"HostPort": "1234",
			"ContainerPort": "3456"
		}
	]
}

This is equivalent to running:

docker run -d -p "127.0.0.1:1234:3456" some/image:tag

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
web

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL