A simple Docker Image with SSH remote access only support
chmod 755 start.sh docker build -t="sshservice" .
docker run -P -d sshservice
ssh -p docker ps |grep sshservice|awk -F":" '{print $2}'|awk -F"-" '{print $1}'
root@localhost
ssh -p docker ps |grep sshservice|awk -F":" '{print $2}'|awk -F"-" '{print $1}'
[email protected]
Prerequisites:
-
An IBM Cloud Account: http://ibm.biz/joinIBMCloud
-
The CF tool and IC plugin installed: https://www.ng.bluemix.net/docs/containers/container_cli_cfic.html
cf login
cf ic login
docker tag sshservice registry.ng.bluemix.net/yourRegistry/sshservice
docker push registry.ng.bluemix.net/yourRegistry/sshservice