Installing IBM Containers Extension on Boot2Docker
JeanFrancoisPuget 2700028FGP Comments (4) Visits (10747)
You want to deploy Docker containers on IBM Bluemix? You have a Windows workstation? If you answered yes to both questions then this post is for you.
The Docker service for IBM Bluemix is the IBM Containers service. This service is currently in beta test and I was lucky enough to get access to it. You can register for the beta on IBM Bluemix home page shown above.
In order to use this service we must first install IBM Containers Extension (ice) on our local Docker host. For Windows machines, the recommended Docker host is Boot2Docker For Windows. I provided detailed instructions for installing it here.
Instructions for installing cie are available here but they are not working as of today for Boot2Docker. Indeed, they fail because of a recent Boot2Docker issue when setting DOCKER_TLS_VERIFY environment variable I am sure this will be fixed soon. In the meantime, here are detailed instructions.
All steps but one can be performed from within Boot2Docker. Before going to Boot2Docker you must download the Cloud Foundry command line interface. You need to use the 32 bits Linux archive available at http
You can now use Boot2Docker. Use cygwin to run the start.sh file in the Boot2Docker install directory. Instructions for installing cygwin are provided here. If you have used the default installation then the following should work fine
This starts the Boot2Docker VM and log you in. You can then execute the following instructions.
You will need to change one piece, which is the path where you downloaded the Cloud Foundry command line interface archive. For instance, we used
In Boot2Docker this is exposed as
This should install ice and all its required components. Let's see if it works.
We're done! Let's test our installation. A crude way is to run ice without arguments. It displays all available options.
You can now use ice to create containers on IBM Bluemix. The first step is to log in with the credential you used to register on the service. Just type ice login and follow instructions.
All the erased parts in the above screenshot are my email. I entered once, and it is used as my user ID and my org ID. You should see yours instead when you log in.
We can now use the IBM Containers service. Let's start by looking at the available Docker images.
We see the two base images of the service (ibmnode and ibmliberty), plus two images I pulled from Docker Hub (anaconda and scipyserver)
We can get information about our service with ice info:
The erase part is my email. We see that our namespace is jfpuget.
We are all set!
If you do not want to reinstall ice each time you restart your Boot2Docker VM you can save you change. Open a new cygwin terminal while your VM is running. Go to the installation directory of Boot2Docker, and type boot2docker save. This gracefully stops the VM and save its state. We can check the save was correclty executed with boot2docker info.
Our next post provides an example of using ice to deploy a Python web app in IBM Containers.