Windows: run task fails with "Could not find an available drive letter"

0

My container is configured to mount an FSx volume, which succeeds on first run.

But... each time the task runs and the container exits, it leaves in place the SMB mapping on the EC2 instance:

PS C:\Windows\system32> gdr -PSProvider 'FileSystem'

Name Used (GB) Free (GB) Provider Root CurrentLocation


C 33.87 66.12 FileSystem C:\ Windows\system32 D 0.09 31.91 FileSystem \amznfsxka9h1c5.... E 0.09 31.91 FileSystem \amznfsxka9h1c5.... F 0.09 31.91 FileSystem \amznfsxka9h1c5.... G 0.09 31.91 FileSystem \amznfsxka9h1c5.... H 0.09 31.91 FileSystem \amznfsxka9h1c5.... . . . Z 0.09 31.91 FileSystem \amznfsxka9h1c5....

PS C:\Windows\system32>

Eventually the instance runs out of drive letters, leading to this:

STOPPED (Could not find an available drive letter to mount fsxwindowsfileserver resource on the container instance)

Is there some cleanup I should be doing to ensure the container doesn't leave behind these drive letters?

已提問 2 年前檢視次數 136 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南