我正在开发 ProcessMaker pm4core-docker 的 dockerized 版本,并尝试运行一个脚本作为休假请求流程的一部分,我想要的是,一旦员工填写了他的请求并发送它,一封电子邮件就会自动发送到经理要求他验证请求
Unable to create a docker container: Unable to find image 'processmaker4/executor-processmaker-php-3:v1.0.0' locally Error response from daemon: pull access denied for processmaker4/executor-processmaker-php-3, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
这是我正在尝试运行的 PHP 脚本:
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require 'vendor/autoload.php';
$mail = new PHPMailer(true);
try {
//Server settings
$mail->isSMTP();
$mail->Host = 'live.smtp.mailtrap.io';
$mail->SMTPAuth = true;
$mail->Username = 'api';
$mail->Password = '****************************';
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
$mail->Port = 587;
//Recipients
$mail->setFrom('[email protected]', 'Mailer');
$mail->addAddress('****************@gmail.com', 'Manager'); // Add a recipient
// Content
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'New leave request';
$mail->Body = 'Hello, you have a new leave request to review';
$mail->AltBody = 'Hello, you have a new leave request to review';
$mail->send();
echo 'Message has been sent';
} catch (Exception $e) {
echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
}
这是前面提到的错误:
Unable to create a docker container: Unable to find image 'processmaker4/executor-processmaker-php-3:v1.0.0' locally Error response from daemon: pull access denied for processmaker4/executor-processmaker-php-3, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
有同样的问题,整个 dockerized 版本已被超级弃用。 我必须更新 docker.base 文件中的所有依赖项,以便我可以构建 processmaker 映像的更新版本(4.11.5),该映像应该使用正确的容器来下载/构建脚本执行器。