Where does docker-machine save the configuration on a remote Ubuntu host running systemd?

One can create a remote machine using the command:

docker-machine create --driver generic --generic-ip-address=<IP> myremotemachine

This command installs and configures docker on the remote host running Ubuntu. And after this the Docker daemon runs using the command:

  • How to configure a Jenkinsfile to build docker image and push it to a private registry
  • Dockerfile versioning best practice
  • Docker FATAL: could not write lock file “postmaster.pid”: No space left on device
  • Django migrations with Docker on AWS Elastic Beanstalk
  • How to pass docker run flags via kubernetes pod
  • How do I append to PATH environment variable when running a Docker container?
  • /usr/bin/docker daemon -H tcp:// -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=generic

    I want to adjust some arguments in this command but I cannot find where docker-machine wrote this configuration. It must be persistent since, upon restart, the remote Ubuntu host, starts the Docker daemon back using these arguments. They are also not the default arguments since, before running docker-machine create, on this Ubuntu server, the daemon was running with fewer arguments (-H fd://).

    Is there another way to configure systemd?

  • How to allow a range of ports in Kubernetes in containerPort variable?
  • How to sync the time of a java application running on docker container?
  • error in installing apache libtool not found
  • Revert changes to docker container
  • How to get Image ID of docker in jenkins?
  • docker-compose.yml invalid: app.build contains an invalid type, it should be a string
  • One Solution collect form web for “Where does docker-machine save the configuration on a remote Ubuntu host running systemd?”

    I found the answer to this one.

    The following command gave me the answer:

    $ sudo systemctl status docker
    ‚óŹ docker.service
       Loaded: loaded (/etc/systemd/system/docker.service; enabled; vendor preset: enabled)
       Active: active (running) since Sat 2016-03-26 03:44:11 UTC; 37min ago

    so docker-machine writes the /etc/systemd/system/docker.service file and there fore this overwrites the values in the default installation file: /lib/systemd/system/docker.service

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.