Bluemix port binding

Official instructions state the following:

    ice ip bind <Address> <Your_Container>

    where <Address> is the returned IP address.

Your application is set up and ready to use. If you used ibmliberty as
your base image in the Dockerfile, as in the previous example, you can
access your running IBM WebSphere® Application Server Liberty Profile
server by pointing your web browser to: http://:9080/

  • loopback in docker container cannot connect to mongo
  • Must I create a tunnel to access a docker container on another host?
  • Config Elasticsearch and Kibana with docker
  • What is the differenece between Docker Registry and Docker Index?
  • ECS CLI - Mount EFS when launching container instance
  • How to run cronjob in docker, and how to see the result?
  • I got the list of my IPs using “sudo ice ip list”.
    Then I tried to bind the IP using three different commands:

    user@comp:~$ sudo ice bind http://$ip/ $containerId
    user@comp:~$ sudo ice ip bind http://$ip:$port $containerId
    user@comp:~$ sudo ice ip bind http://$ip:$port $containerName

    But got the same error message:

    Target is container cloud. Invoking cloud service...
    usage: ice [-h] [--verbose] [--cloud | --local]
    ice: error: argument subparser_name: invalid choice: 'bind' (choose from 'login', 'tlogin', 'ps', 'run', 'inspect', 'logs', 'start', 'stop', 'restart', 'pause', 'unpause', 'rm', 'images', 'search', 'info', 'ip', 'help')

  • Error while execing a docker image
  • Using a local network Docker registry server
  • File name too long on docker
  • Should I scale down Openshift app's replicas before deleting its resources?
  • Running JAXB/XJC in Dockerfile yields in GConf Error
  • Share local network Docker
  • 2 Solutions collect form web for “Bluemix port binding”

    I was able to bind succesfully using following command syntax

    sudo ice ip bind $ip $containerName

    Contrary to official instructions the ip bind command does not like “http://” and “:port” arguments.

    Sorry about that. The team is working on getting the docs updated. Thanks for finding this!

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