Skip to content

Commit

Permalink
Use {{ docker_path }} in systemd unit file and not the hardcoded docker
Browse files Browse the repository at this point in the history
path
  • Loading branch information
andygrunwald committed Mar 19, 2022
1 parent 69bfe8c commit 2d3a96d
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 @@ -37,7 +37,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 2d3a96d

Please sign in to comment.