# Add Custom Host with Name

**URL:** <https://forums.suse.com/t/add-custom-host-with-name/4314>\
**Category:** Rancher 1.x\
**Created:** [October 14, 2016, 1:12pm UTC](https://forums.suse.com/t/add-custom-host-with-name/4314 "2016-10-14T13:12:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mendescamara](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mendescamara](https://forums.suse.com/u/mendescamara)\
**Post date:** [October 14, 2016, 1:12pm UTC](https://forums.suse.com/t/add-custom-host-with-name/4314/1 "2016-10-14T13:12:03Z")

</div>

Hi,

when I add custom host the name it is null.

How i add the custom host with name using script?

**Ex. Script** : \_“sudo docker run -d --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.0.2 {RANCHER\_URL}”
