Skip to content

Commit

Permalink
Merge pull request #40 from andygrunwald/use_docker_path
Browse files Browse the repository at this point in the history
Use {{ docker_path }} in systemd unit file and not the hardcoded docker path
  • Loading branch information
mhutter authored Mar 21, 2022
2 parents a83fd10 + 2d3a96d commit be61d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/unit.j2
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ExecStart={{ docker_path }} run \
{{ container_image }} {{ container_cmd | default('') | trim }}
{% endif %}
{% if not 'ExecStop' in service_systemd_options_keys %}
ExecStop=/usr/bin/docker stop {{ container_name }}
ExecStop={{ docker_path }} stop {{ container_name }}
{% endif %}
{% if container_start_post is defined %}
ExecStartPost=-{{ container_start_post }}
Expand Down

0 comments on commit be61d93

Please sign in to comment.