Docker Community Forums

Share and learn in the Docker community.

Sudo: Illegal option -E on Oracle Linux 7


(Wangdn4005) #1

hi,
Can somebody help to take a look why I can’t use “sudo -E” when creating a generic vm on Oracle Linux 7? Thanks.

[root@xxxxxx username]# docker-machine create -d generic --generic-ip-address=xxxx.xxxx.xxxx.xxxx --generic-ssh-user=root vm1
Running pre-create checks…
Creating machine…
(vm1) No SSH key specified. Assuming an existing key at the default location.
Waiting for machine to be running, this may take a few minutes…
Detecting operating system of created instance…
Waiting for SSH to be available…
Detecting the provisioner…
Provisioning with ol…
Error creating machine: Error running provisioning: Something went wrong running an SSH command!
command : sudo -E yum install -y curl
err : exit status 1
output : sudo: Illegal option -E
usage: sudo -V | -h | -L | -l | -v | -k | -K | [-H] [-P] [-S] [-b] [-p prompt]
[-u username/#uid] -s |

docker-machine version 0.8.0, build b85aac1
Linux vm1 3.8.13-55.1.6.el7uek.x86_64 #2 SMP Wed Feb 11 14:18:22 PST 2015 x86_64 x86_64 x86_64 GNU/Linux