machine icon indicating copy to clipboard operation
machine copied to clipboard

Docker Machine create fails if /etc/os-release not found.

Open outtolunc opened this issue 10 years ago • 13 comments

This issue still exists, and has been stated 'this will be fixed in v0.5.0 , will it?

If nothing else have it fall-through to /etc/os-release /etc/redhat-release /etc/centos-release etc..

Running pre-create checks... Creating machine... Waiting for machine to be running, this may take a few minutes... Machine is running, waiting for SSH to be available... Detecting operating system of created instance... Error creating machine: Error detecting OS: Error getting SSH command: Something went wrong running an SSH command! command : cat /etc/os-release err : exit status 1 output : cat: /etc/os-release: No such file or directory

outtolunc avatar Nov 02 '15 23:11 outtolunc

I don't think it will be fixed in the 0.5.0 release. Where did you read that? Is there a duplicate issue we can consolidate into?

nathanleclaire avatar Nov 02 '15 23:11 nathanleclaire

google: docker-machine /etc/os-release issue

not sure which had the 'will be fixed in v0.5.0 was in.. as there are so many.

1031 waiting for vm to start 1684 ..

1643 1596 1019 1833 1591

...

On Mon, Nov 2, 2015 at 3:50 PM, Nathan LeClaire [email protected] wrote:

I don't think it will be fixed in the 0.5.0 release. Where did you read that? Is there a duplicate issue we can consolidate into?

— Reply to this email directly or view it on GitHub https://github.com/docker/machine/issues/2143#issuecomment-153195646.

outtolunc avatar Nov 03 '15 00:11 outtolunc

At a quick glance I don't see any issues which clearly reference this bug in the name but I'll treat this one as the bug report until / if we find such a dupe.

nathanleclaire avatar Nov 03 '15 00:11 nathanleclaire

But for reference, it is still an issue in 0.5.0.

nathanleclaire avatar Nov 03 '15 00:11 nathanleclaire

I'm affected by this too

$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.6 (Santiago)

Diaoul avatar Nov 11 '15 10:11 Diaoul

still no solution for it?

jbaramidze avatar Dec 09 '15 09:12 jbaramidze

+1

harishanchu avatar Dec 14 '15 09:12 harishanchu

If I understand this summary correctly, /etc/os-release is systemd-specific which does not apply to CentOS 6.

yawn avatar May 23 '16 14:05 yawn

+1

xlDoug avatar Feb 03 '17 18:02 xlDoug

+1

ericraio avatar Feb 11 '19 22:02 ericraio

The same with macOS which does not have any "*release" or "*version" files in "/etc". Some unanswered question also here: https://forums.docker.com/t/connecting-to-docker-running-on-mac-server/9174

andrzejmartyna avatar Apr 01 '19 13:04 andrzejmartyna

Same problem. Host: MacOS 10.15.7 docker-machine version 0.16.2, build bd45ab13

Running pre-create checks...
Creating machine...
(mini) Importing SSH key...
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...
Error creating machine: Error detecting OS: Error getting SSH command: ssh command error:
command : cat /etc/os-release
err     : exit status 1
output  : cat: /etc/os-release: No such file or directory

mnesov avatar Oct 25 '20 15:10 mnesov

Same Problem on MacOS 11.2.3 Any solutions?

cianiandreadev avatar Apr 09 '21 21:04 cianiandreadev