我目前在亚马逊ECS上有一个Nginx Docker镜像。我需要通过certbot重新颁发SSL证书,并且需要删除旧的证书。如何删除该卷?我目前打算使用新卷而不是旧卷(附加一个“v2”后缀)。
这是我任务定义的一部分(如上所述,我不得不将它们重新命名为v2):
"mountPoints": [
{
"sourceVolume": "nginx-certbot-v2",
"containerPath": "/etc/letsencrypt",
"readOnly": false
},
{
"sourceVolume": "nginx-acme-webroot-v2",
"containerPath": "/var/acme-webroot",
"readOnly": false
},
{
"sourceVolume": "nginx-dhparam-v2",
"containerPath": "/etc/nginx/dhparam",
"readOnly": false
}
],
以下是卷定义:
"volumes": [
{
"name": "nginx-certbot-v2",
"dockerVolumeConfiguration": {
"scope": "shared",
"autoprovision": true,
"driver": "local"
}
},
{
"name": "nginx-acme-webroot-v2",
"dockerVolumeConfiguration": {
"scope": "shared",
"autoprovision": true,
"driver": "local"
}
},
{
"name": "nginx-dhparam-v2",
"dockerVolumeConfiguration": {
"scope": "shared",
"autoprovision": true,
"driver": "local"
}
}
]
我有没有可能在没有“v2”的情况下取回卷?