IBM Cloud Services — Docker Setup

Pablo Ezequiel Inchausti
3 min readApr 22, 2020


I want publish a docker image in the IBM Cloud Platform … why? Becase with our team, we are analyzing the possibility to send an idea to the Hackathon CallForCode sponsored for the ONU and IBM, and, one of the first requisites is to use the IBM Cloud services or IBM Systems. …

So, the question is: How complex, or tricky is to achieve it?


Let´s Start

So, after all of it, I am ready to follow the specific steps to run the docker image in the IBM cloud platform, that are in this link after “IBM Cloud” title

$ ibmcloud cr namespace-add pabloeze
'cr' is not a registered command. See 'ibmcloud help'.
.... etc
$ ibmcloud plugin install container-registry -r 'IBM Cloud'
.... etc
$ ibmcloud cr namespace-add pabloeze
Adding namespace 'pabloeze'...
Successfully added namespace 'pabloeze'OK

Ok, I have to install first a “cr” plugin, and now, I have a “pabloeze” namespace,

Now, let´s publish the docker image on the IBM cloud Registry

$ ibmcloud cr build --tag .                                   1 

Sending build context to Docker daemon 82.24MB
Step 1/13 : FROM node:10.16.0 as build
10.16.0: Pulling from library/node
a4d8138d0f6b: Pull complete
dbdc36973392: Pull complete
f59d6d019dd5: Pull complete
aaef3e026258: Pull complete
....Removing intermediate container 6d6c67b1ae2c
---> a01ced370bf0
Successfully built a01ced370bf0
Successfully tagged
The push refers to repository []
2c6282500b0c: Pushed
6081fcfa9e5b: Pushed
2bdf88b2699d: Pushed
f1b5933fe4b5: Pushed
v1.0: digest: sha256:7d4beeab5dafdc21821f07321d96cf978e7fa3ee0481409a3f9a4f28141df86e size: 1163

The registry

$ ibmcloud cr image-list
Listing images...
Repository Tag Digest Namespace Created Size Security status v1.0 7d4beeab5daf pabloeze 13 minutes ago 40 MB 22 Issues

And the Docker Run for it

$ docker run -d -p 80:80
Unable to find image '' locally
docker: Error response from daemon: Get unauthorized: authentication required.
See 'docker run --help'.

So, we need to login (after a while of some weeks … I needed to make a “ibmcloud login” again ..)

$ ibmcloud cr login                                                                                           
Logging in to ''...
Logged in to ''.
Logging in to ''...
Logged in to ''.

Now, we are ready! Let´s run the docker from IBM Cloud

$ docker run -d -p 80:80 --name  healthyApp

And the docker is alive, on http://localhost:80 running the Angular App inside it

So, let´s stop the post here ….

With the goal accomplished: to publish a docker image on IBM Cloud Platform and run it


This post is based on following the steps on:

The source code to build & run the angular demo app, with the Dockerfile inside it to build the docker. is available on:



Pablo Ezequiel Inchausti

#cloud . #mobile ~} Sharing IT while learning It! ... Opinions are for my own