Created
October 28, 2024 19:53
-
-
Save leifermendez/8278a7acfc3f5a1425e4594a24d984ec to your computer and use it in GitHub Desktop.
service.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Mi Contenedor Docker | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
ExecStart=/usr/bin/docker start nombre_contenedor | |
ExecStop=/usr/bin/docker stop nombre_contenedor | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment