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
12 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

+1 vote

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

There are multiple cases:
1. A number of containers have been launched in the same host. how these container communicate to each other
2. Out of "x" numbers of containers in the same host, I want to enable communication between two specific containers. How I can achieve this ?
3. Containers have been launched into different hosts machine and I want to enable communication between these containers. What are the options available ?


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