@@ -147,6 +147,9 @@ func copyFileToVolume(filePath string, targetPath string, volumeName string) err
return err
}
// remove temporary container
+ if err := StopContainerByName("wg_writer"); err != nil {
+ return err
+ }
if err := cli.ContainerRemove(ctx, resp.ID, types.ContainerRemoveOptions{Force: true}); err != nil {