mirror of
https://github.com/docker/docs.git
synced 2026-11-05 00:14:17 +03:00
Set boot2docker hostname properly
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user