Build a go code in order to push it to my Minikube Cluster
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
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.
$> PORT=9001 go run main.go