Set boot2docker hostname properly

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
Nathan LeClaire 2015-07-06 13:11:07 -07:00
parent 654fa91851
commit fd35c7df48
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ func (provisioner *Boot2DockerProvisioner) Hostname() (string, error) {
func (provisioner *Boot2DockerProvisioner) SetHostname(hostname string) error {
if _, err := provisioner.SSHCommand(fmt.Sprintf(
"sudo hostname %s && echo %q | sudo tee /var/lib/boot2docker/etc/hostname",
"sudo /usr/bin/sethostname %s && echo %q | sudo tee /var/lib/boot2docker/etc/hostname",
hostname,
hostname,
)); err != nil {