top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+1 vote
517 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, 2017 by Vikram Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn 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, 2017 by Amit Kumar Pandey
Similar Questions
+1 vote

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 ?

...