# Exec "hostname" executable file not found in $PATH

**URL:** <https://forums.suse.com/t/exec-hostname-executable-file-not-found-in-path/10166>\
**Category:** Rancher 1.x\
**Created:** [April 25, 2018, 3:16pm UTC](https://forums.suse.com/t/exec-hostname-executable-file-not-found-in-path/10166 "2018-04-25T15:16:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandeepambati](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sandeepambati](https://forums.suse.com/u/sandeepambati)\
**Post date:** [April 25, 2018, 3:16pm UTC](https://forums.suse.com/t/exec-hostname-executable-file-not-found-in-path/10166/1 "2018-04-25T15:16:10Z")

</div>

docker run -it -d --hostname [personal-website.com](http://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”}
