By geetha
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!
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:
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.