http://ropenscilabs.github.io/r-docker-tutorial/04-Dockerhub.html
Once generated a docker image, it can be store in Docker Hub.
For Docker Hub sign-up, a free account can be created at:
https://hub.docker.com/
$ docker login --username=josemanuelrodriguezPassword:Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeoutIssue solved, thanks to https://github.com/moby/moby/issues/22635#issuecomment-224708869
sudo sysctl -w net.ipv4.tcp_mtu_probing=1
and adding the following line to /etc/sysctl.conf:
net.ipv4.tcp_mtu_probing=1 $ docker login --username=josemanuelrodriguezPassword:Login SucceededLet's create a tag of the image to be pushed to Docker Hub (see docker images to find out the tag name)
Syntax: docker tag bb38976d03cf yourhubusername/yourhubrepo:tagname
$ docker tag eb8487a11e20 josemanuelrodriguez/jenkins-openshift:v1.0.0docker push josemanuelrodriguez/jenkins-openshiftThe push refers to a repository [docker.io/josemanuelrodriguez/jenkins-openshift]3427fe968205: Pushed20f314f97125: Pushedfbba8cb56cea: Pushing [==> ] 3.898MB/92.51MBea192f954d8f: Pushing [==> ] 919kB/20.93MBf55aea053790: Pushing [==> ] 1.147MB/20.93MB4db8cc51996d: Pushing 8.704kBc4d771bb36ef: Pushing [========> ] 523.3kB/2.985MB9b22077db44b: Waitinga216b8bd2a10: Waitingbd97d2b42fe5: Waiting8cb1f88fdeab: Waiting...