Skip to content

artyom/push-to-docker-repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Demo: construct/push an image to the Docker repository only using the Go standard library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages