Report this

What is the reason for this report?

How to test the portability of docker in fedora with JBoss application?

Posted on September 22, 2014

I am a beginner to Docker. I want to test the portability of docker in fedora. I want to create my own image in fedora 19 having Jboss application and try to run this in fedora 20. What I want to do this? Help me with suitable commands.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

JBoss provides a set of Docker images that you can use as a base layer for your JBoss application container. They have an overview on their site and you can view their offical images right on Docker Hub. RedHat also has a nice overview.

At its most basic, your Dockerfile might look like:

FROM jboss/wildfly
ADD myapp.war /opt/wildfly/standalone/deployments/

With the war file for your project in the same directory. You could then build it using:

docker build -t my-app .

And finally run it with:

docker run -it --rm -p 8080:8080 my-app

For information on how to build your own Docker images, check out this tutorial:

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.