Skip to content

Kanthongv/go-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go project for testing K8s

Build a go code in order to push it to my Minikube Cluster

DOCKER PUSH ERROR

denied: requested access to the resource is denied means Docker is trying to push to docker.io/library/go-container, and that’s not allowed. The library namespace is reserved for official images on Docker Hub, so you can’t push there.

Fix: use your Docker Hub username

docker tag go-container:latest /go-container:latest

$> docker tag go-container:latest kanthongv/go-container:latest

$> docker push kanthongv/go-container:latest

Install

Command 'go' not found, but can be installed with:

sudo snap install go # version 1.26.1, or sudo apt install golang-go # version 2:1.131ubuntu2 sudo apt install gccgo-go # version 2:1.131ubuntu2

See 'snap info go' for additional versions.

Run Go

$> PORT=9001 go run main.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors