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:

  • Multiple dokku apps one domain
  • How to deal with persistent storage (e.g. databases) in docker
  • How can I mount a volume to docker container in OSX?
  • GitLab Ci with docker runner - Multiple Stages
  • Deploying scala app as a docker container
  • building docker 0.7.2 from sources on Ubuntu 12.04
  • /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=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?

  • Logging from Docker
  • docker restart policy doesn't work?
  • Nginx reverse proxy on docker and unloaded assets
  • How to create new databases and collections when using MongoDB with Docker?
  • Cannot install docker on OS X Version 10.9.5
  • How should I handle remote logging with systemd?
  • 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.