docker run -it -d --hostname personal-website.com --name imagename-container imagename:latest
This docker command is successful and i have python code in my docker image. Even docker-compose is working.
But when i create a deployment and add my image name and added some of the run time arguments in the following manner.
my master and node docker versions are 17.03.2~ce
kubectl version
Client Version: version.Info{Major:“1”, Minor:“9”, GitVersion:“v1.9.0”, GitCommit:“925c127ec6b946659ad0fd596fa959be43f0cc05”, GitTreeState:“clean”, BuildDate:“2017-12-15T21:07:38Z”, GoVersion:“go1.9.2”, Compiler:“gc”, Platform:“linux/amd64”}
Server Version: version.Info{Major:“1”, Minor:“9+”, GitVersion:“v1.9.5-rancher1”, GitCommit:“f11c6299ce2b927c3e34ea2afdf57cd08596802f”, GitTreeState:“clean”, BuildDate:“2018-03-20T16:40:55Z”, GoVersion:“go1.9.3”, Compiler:“gc”, Platform:“linux/amd64”}