IBM Cloud Services — Docker Setup

Prerequisites:

Let´s Start

$ ibmcloud cr namespace-add pabloeze
FAILED
'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
$ ibmcloud cr build --tag registry.ng.bluemix.net/pabloeze/healthydata:v1.0 .                                   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 private.us.icr.io/pabloeze/healthydata:v1.0
The push refers to repository [private.us.icr.io/pabloeze/healthydata]
2c6282500b0c: Pushed
6081fcfa9e5b: Pushed
2bdf88b2699d: Pushed
f1b5933fe4b5: Pushed
v1.0: digest: sha256:7d4beeab5dafdc21821f07321d96cf978e7fa3ee0481409a3f9a4f28141df86e size: 1163
OK
$ ibmcloud cr image-list
Listing images...
Repository Tag Digest Namespace Created Size Security status
us.icr.io/pabloeze/healthydata v1.0 7d4beeab5daf pabloeze 13 minutes ago 40 MB 22 Issues
OK
$ docker run -d -p 80:80 us.icr.io/pabloeze/healthydata:v1.0
Unable to find image 'us.icr.io/pabloeze/healthydata:v1.0' locally
docker: Error response from daemon: Get https://us.icr.io/v2/pabloeze/healthydata/manifests/v1.0: unauthorized: authentication required.
See 'docker run --help'.
$ ibmcloud cr login                                                                                           
Logging in to 'registry.ng.bluemix.net'...
Logged in to 'registry.ng.bluemix.net'.
Logging in to 'us.icr.io'...
Logged in to 'us.icr.io'.
OK
$ docker run -d -p 80:80 --name  healthyApp us.icr.io/pabloeze/healthydata:v1.0
00d51926323bd2f8f8597cbfc51dfedb8adb5f349085bc0cf9fc5855e5168768

Resources

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Progressive Web Application: The Next Level of Web App

History Of AWS

Why Rails is a good framework to choose as a beginner developer

Getting Started with DBeaver on a Distributed SQL Database

Testing Virtuous Cycles Part 2

Learning to code and becoming a software engineer.

MyDumper, MyLoader and My Experience of Migrating to AWS RDS

The risk of faking it, is you may never make it.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pablo Ezequiel Inchausti

Pablo Ezequiel Inchausti

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

More from Medium

Continuous Integration: Self-hosting Drone CI

What is CI/CD? — A 30,000 foot view

CI/CD Overview

Learn How To Get the File name and File ID From Google Drive In Apps Script

Google Apps Script — Getting File Name And Id From Google Drive Files

Using Google Chat for Elastic Security Alerts