<p>I am looking for information but I can't find it. Is it possible to attach Amazon S3 storage to the Docker container so that it is via the application (Spring Boot) as a disk? If so, how to do it? If it is important, the docker image is managed by kubernetes</p>

xampo
<p>I'd recommend to take a look at the product <a href="https://docs.min.io/docs/minio-client-quickstart-guide.html" rel="nofollow noreferrer">Min.io</a>.<br>
Its client has nice features that allow you to use simple FS commands to operate S3 storage from your container:</p>

<pre><code>ls        list buckets and objects
mb        make a bucket
rb        remove a bucket
cat       display object contents
head      display first 'n' lines of an object
pipe      stream STDIN to an object
share     generate URL for temporary access to an object
cp        copy objects
mirror    synchronize objects to a remote site
find      search for objects
sql       run sql queries on objects
stat      stat contents of objects
lock      set and get object lock configuration
retention set object retention for objects with a given prefix
legalhold set object legal hold for objects
diff      list differences in object name, size, and date between buckets
rm        remove objects
event     manage object notifications
watch     watch for object events
policy    manage anonymous access to objects
admin     manage MinIO servers
session   manage saved sessions for cp command
config    manage mc configuration file
update    check for a new software update
version   print version info
</code></pre>

<p>For convenience, you may add shell aliases to override your common Unix tools.</p>

<pre><code>alias ls='mc ls'
alias cp='mc cp'
alias cat='mc cat'
alias mkdir='mc mb'
alias pipe='mc pipe'
alias find='mc find'
</code></pre>

<p>It also has native Java (Pyton, Golang, .NET, Haskel) client:</p>

<ul>
<li><a href="https://docs.min.io/docs/java-client-quickstart-guide.html" rel="nofollow noreferrer">MinIO Java SDK for Amazon S3 Compatible Cloud Storage</a></li>
</ul>
