mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2026-05-04 20:09:50 +02:00
build
This commit is contained in:
@@ -1053,7 +1053,7 @@ class Portainer:
|
|||||||
|
|
||||||
def recreate_container(self,service_id, pull=False):
|
def recreate_container(self,service_id, pull=False):
|
||||||
"""Restart a service on an endpoint."""
|
"""Restart a service on an endpoint."""
|
||||||
path = f"/endpoints/{self.endpoint_id}/containers/{service_id}/recreate"
|
path = f"/docker/{self.endpoint_id}/containers/{service_id}/recreate"
|
||||||
print(path)
|
print(path)
|
||||||
params={"pullImage": pull}
|
params={"pullImage": pull}
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user