

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Publishing to Docker Hub
incomplete
2: Publishing to Docker Hub
incomplete
3: Delete and Pull
incomplete
4: Tags
incomplete
5: Latest
incomplete
6: The Bigger Picture
incomplete
This lesson's interactive features are locked, please to keep using them
Let's publish the Go server we Dockerized up to Docker Hub.
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.
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.