We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Publishing to Docker Hub

Let's publish the Go server we Dockerized up to Docker Hub.

Assignment

GOOS=linux GOARCH=amd64 go build
docker build . -t USERNAME/goserver
docker run -p 8991:8991 USERNAME/goserver
docker push USERNAME/goserver

If everything worked, you should be able to refresh your repositories page and see your new image! By default, Docker Hub makes your images public, so anyone can pull them.

Answer the question.

Tip

If you're having trouble because you aren't signed in to Docker Hub, you can sign in by using the Docker Desktop GUI, or by running docker login in the command line.