Skip to content

Commit

Permalink
Update generic.md (docker#5610)
Browse files Browse the repository at this point in the history
add info about systemd setting
  • Loading branch information
kewalaka authored and Misty Stanley-Jones committed Dec 26, 2017
1 parent 1dba72c commit 1b30291
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion machine/drivers/generic.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ The driver will perform a list of tasks on create:
- If docker is not running on the host, it will be installed automatically.
- It will update the host packages (`apt-get update`, `yum update`...).
- It will generate certificates to secure the docker daemon.
- If the host uses systemd, it will create /etc/systemd/system/docker.service.d/10-machine.conf
- The docker daemon will be restarted, thus all running containers will be stopped.
- The hostname will be changed to fit the machine name.


### Example

To create a machine instance, specify `--driver generic`, the IP address or DNS
Expand Down Expand Up @@ -56,4 +58,16 @@ as a sudoer with `NOPASSWD`. See https://help.ubuntu.com/community/Sudoers.
| **`--generic-ip-address`** | `GENERIC_IP_ADDRESS` | - |
| `--generic-ssh-key` | `GENERIC_SSH_KEY` | - |
| `--generic-ssh-user` | `GENERIC_SSH_USER` | `root` |
| `--generic-ssh-port` | `GENERIC_SSH_PORT` | `22` |
| `--generic-ssh-port` | `GENERIC_SSH_PORT` | `22` |

### Systemd settings

For systems that use systemd, if you have an existing configuration defined in
'/etc/systemd/system/docker.service.d/' this may conflict with the settings created by
docker-machine. Make sure you don't have any other configuration files in this location
that override the [ExecStart] setting.

Once you have confirmed any conflicting settings have been removed, run
`sudo systemctl daemon reload` followed by `sudo systemctl restart docker`


0 comments on commit 1b30291

Please sign in to comment.