Are you sure you want to delete the question?

Leaving a resolved question undeleted may help others!

dockerにaws-s3 プログインをインストールするとき、のエラー

Dockerボリュームには、共有ファイルストレージのために、Dockerにはaws-s3 プログインをインストールすると思って 以下のコマンドを使用しました。

docker plugin install rexray/s3fs:latest S3FS_REGION=us-east-2 S3FS_OPTIONS="allow_other,iam_role=auto,umask=000" --grant-all-permissions

そのコマンドからでは、プログインがインストールできましたけど、エラーが発生しました。

docker plugin ls
1.JPG

enableはtrueにするため、
docker plugin enable {container-id}
2.JPG

そのエラーはどうやって解決しますか。
教えてください。

0 likes

2Answer

Please note that most of REX-Ray's plug-ins must be configured and installed at the same time since Docker starts the plug-in when installed. Otherwise the plug-in will fail since it is not yet configured. Please see the sections below for platform-specific configuration options.
https://rexray.readthedocs.io/en/stable/user-guide/schedulers/docker/

docker plugin install の引数で S3FS_ACCESSKEYS3FS_SECRETKEY を設定してください。そうしないとインストールが失敗します。

以下のように実行すればインストールできると思います。

docker plugin install rexray/s3fs:latest \
    S3FS_REGION=us-east-2 \
    S3FS_ACCESSKEY=<your-aws-access-key> \
    S3FS_SECRETKEY=<your-aws-secret-key> \
    S3FS_OPTIONS="allow_other,iam_role=auto,umask=000" \
    --grant-all-permissions
0Like

Your answer might help someone💌