Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Err: docker daemon is not supported on Linux, AWS Provider #4160

Closed
Grep-Juub opened this issue Jun 30, 2017 · 1 comment
Closed

Err: docker daemon is not supported on Linux, AWS Provider #4160

Grep-Juub opened this issue Jun 30, 2017 · 1 comment

Comments

@Grep-Juub
Copy link

Hi,
Since yesterday I'm having hard time using docker-machine with AWS.
I'm using docker-machine: v0.12.0

I create a new ec2 instance with this command:

docker-machine create --driver amazonec2 --amazonec2-access-key=XXXXXXXX--amazonec2-secret-key=XXXXXXXX --amazonec2-region=eu-west-1 --amazonec2-instance-type=t2.small --amazonec2-volume-type=gp2 --amazonec2-root-size=30 --amazonec2-ami=ami-964e56f0 awsTest1

(The ami is the latest 16.04 ubuntu hvm for my region)

But the process crash telling me after installing Docker it can't start the daemon and return me this error:

`docker daemon` is not supported on Linux. Please run `dockerd` directly

When I connect to the instance I can see that the command used to launch docker daemon seem outdated:
cat /etc/systemd/system/docker.service.d/10-machine.conf

[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --storage-driver aufs --tlsverify --tlscacert /etc/docker/ca.pem --tlscert /etc/docker/server.pem --tlskey /etc/docker/server-key.pem --label provider=amazonec2
Environment=

If I replace manually it will work correctly (I also need to remove aufs storage driver or it crash to)

I can't find a way to edit how docker-machine provision my instance so I could fix this, but it seem really weird that I'm the only one who got this error can't find anything on google for this.
Is this due to a new release of docker or something ?

Docker version on the instance:
Docker version 17.06.0-ce, build 02c1d87

Thanks for the help!

@Grep-Juub
Copy link
Author

Grep-Juub commented Jun 30, 2017

Dam sorry just saw #4156 closing this one

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant