push-to-docker-repo

command module
v0.0.0-...-6c160ed Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: MIT Imports: 19 Imported by: 0

README

push-to-docker-repo

This is an example program demonstrating how to construct and push Docker images to a docker repository only using the Go standard library.

It is an approximate equivalent of packing static linux/amd64 Go binary to a "FROM scratch" docker container, and pushing this container to a docker repository, like so:

FROM scratch
ADD main /hello-from-container
CMD ["/hello-from-container"]

This program reads registry authentication token from ${HOME}/.docker/config.json file.

Documentation

Overview

push-to-docker-repo is an example program demonstrating how to construct and push Docker images to a docker repository only using the Go standard library.

It is an approximate equivalent of packing static linux/amd64 Go binary to a "FROM scratch" docker container, and pushing this container to a docker repository.

This program reads registry authentication token from ${HOME}/.docker/config.json file.

Jump to

Keyboard shortcuts

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