top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

Docker: What are the steps that need to execute to run an application in docker container ?

+1 vote
8 views

I have one application which is running in a stand alone system. I want to run the same application in a docker container. I also want to know that is only one process that can run in a docker container ?

posted Jun 17 by Vikram Singh

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

Writing a Dockerfile for a simple Java application:

Let’s create a Dockerfile for the Oracle JDK, which is not available on Docker Hub. To begin this process, create a new folder and then create a file in it named “Dockerfile” with the following content.

# Dockerfile

FROM  phusion/baseimage:0.9.17

MAINTAINER  Author Name <author@email.com>

1. Update the package repository

RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list
RUN apt-get -y update

From:
https://runnable.com/docker/java/dockerize-your-java-application

answer Jun 17 by Amit Kumar Pandey
Similar Questions
0 votes

What should be the approach to create two containers in such way one container writes in shared resource and another container then consumes the content ? I want to achieve the same thing as we all did for producer consumer problem using the inter process communication.


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...