Use public container images on IBM Bluemix

How can i start a container from the public docker hub (registry.hub.docker) on Bluemix?
I tried adding the repo url to the public name but I always get “Image not found”.

cf ic run -d registry.hub.docker.com/ghost

  • Unable to query consul DNS interface from host
  • Docker read file from local system when container is running
  • Gunicorn can't find staticfiles after dockerization
  • How to assign IPv6 address with docker-compose
  • Why do inherited Docker images differ in size
  • Install Tensorflow on Windows Docker installation
  • How do I access a USB drive on a OSX host from inside a docker container?
  • Running multiple time the same docker image
  • run docker commands in non-interactive shell
  • gcloud connect to docker Daemon fail
  • Visual C++ for Linux Development + Docker
  • docker run program arguments in aws ecs
  • 4 Solutions collect form web for “Use public container images on IBM Bluemix”

    The answer from @Alex da Silva is 100% correct but I found a simpler way.

    cpi                 Copy an image from Docker Hub
    
    cf ic cpi SRC DST
    

    You need to first pull it to your docker repository, tag the image to your Bluemix registry and then push image to Bluemix repository.

    $ docker pull <image>
    $ docker tag <current_image_name_or_ID>:<optional_tag> <private_Bluemix_repository>/<new_image_name>:<optional_tag> 
    $ cf ic login
    $ docker push <private_Bluemix_repository>/<image_name>
    $ cf ic images
    

    See documentation for more details:

    https://www.ng.bluemix.net/docs/containers/container_images_adding_ov.html#container_images_pulling

    Just to note that IBM Bluemix Container Service now offers Kubenetes clusters, these can pull directly from public registries such as Docker Hub and are preconfigured to securely pull private images from IBM Bluemix Container Registry.

    Access to the IBM Bluemix Container Registry is via the container-registry plugin to the bx command.

    The documentation for the registry can be found here

    as per the documentation here: https://console.bluemix.net/docs/containers/container_images_adding_ov.html#container_images_copying – here is what they say for docker hub images:

    Images from Docker Hub
    Copy images directly from Docker Hub into your private Bluemix registry or pull an image from Docker Hub, modify it locally, and then build it directly in your registry.

    You can follow the instructions to pull images from docker hub. Hope this helps.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.