HiveBrain v1.2.0
Get Started
← Back to all entries
patternjavadockerMinor

Is it possible to mount an s3 bucket as a point in a docker container?

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
containerpointdockerpossiblebucketmount

Problem

I have a Java EE packaged as war file stored in an AWS s3 bucket. I will like to mount the folder containing the .war file as a point in my docker container. I have managed to do this on my local machine. Below is an example of a JBoss wildfly deployments. How can I use s3 for this ?

docker container run -d —name Application -p 8080:8080 -v pwd /Application.war: /opt/jboss/wildfly/standalone/deployments/Application.war jboss/wildlfly

Solution

Yes , you can ( and in swarm mode you should )

-
rexray example

-
s3vol example

-
in fact with volume plugins you may attach many things

-
also for registry

Context

StackExchange DevOps Q#8633, answer score: 4

Revisions (0)

No revisions yet.