I create docker images for different purposes and use this place to store them
Installing with convenience script:
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
To run docker as a non-root user
$ sudo usermod -aG docker your-user
-
Login to the docker hub with
$ docker login --username=<your-username> --email=<email@domain.com>
-
Now tag the image present locally with the repository name, like this:
$ docker tag <image-hash
/:` -
After that, the image is ready to be pushed. Do it with the following command:
$ docker push <your-username>/<repo-name>
sudo docker rm $(sudo docker container ls -aq)