如何创建docker映像,然后将其上传到我的存储库? [关闭]

the docker image i need to create must be able to run a GO app with the link given below https://github.com/raikikon/cloud-torrent i want this GO app to be included in docker image ..

i followed this but it doesn't seems to working https://blog.codeship.com/building-minimal-docker-containers-for-go-applications/

That app already has a Dockerfile and an image on the public Docker Hub, so unless you want to modify it you don't need to build an image at all. As the README says, just:

docker run -d -p 3000:3000 -v /path/to/my/downloads:/downloads jpillora/cloud-torrent

If you do want to build your own version, clone the repo and make your changes, then build it using the Dockerfile in the repo:

docker build -t my-cloud-torrent .

If you are running your own registry and don't want to use the public Hub, you can tag your own image and push it to your registry (assuming you are running the registry on the local box at default port 5000):

docker tag my-cloud-torrent localhost:5000/my-cloud-torrent
docker push localhost:5000/my-cloud-torrent