Menu

DaMold_Docker

ramvinay

TABLE OF CONTENTS


1. What is DaMold Docker

To run DaMold web application on local server, DaMold is provided as a fully configured Docker container which can be easily run on any operating systems.

1.1 How to get and install Docker?

For respective operating system follow the given link below to get and install the Docker running before using DaMold docker.

**On Mac OSX **
Download docker for Mac OSX and then follow the instruction How to install Docker on Mac OSX?.

On WIndows
Download docker for Windows and then follow the instruction How to install Docker on Windows?.

On Linux
Download docker for Linux and then follow the instruction How to install Docker on Linux?.

1.2 How to obtain DaMold Docker?

After installtion of Docker, download DaMold Docker and follow these steps to get DaMold web application running on local computer.

Step1: Uncompress the downloaded file (Damold_v1.0.zip) and go in DaMold directory with following commands:

unzip DaMold_v1.0.zip

cd DaMold

Step2: Build the docker container for DaMold tool. The Docker image name will be damold.

docker build -t damold .

Step3: After building damold docker stop apache webserver (if running) before running DaMold web application in Docker.

# For Mac OSX
sudo /usr/sbin/apachectl stop

# For ubuntu
sudo service apache2 stop

Step4: After building damold docker container run the damold with following command.

docker run --name damold --restart always -p 80:80 -d damold

Step5: After running the Damold docker container, check the status of running container with follwoing command:

docker ps

The output of above command will look like following:

#CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                NAMES
#3f599e1d69d4        damold              "/bin/sh -c '/bin/bas"   4 seconds ago       Up 2 seconds        0.0.0.0:80->80/tcp   damold

Step6: Now open the web browser and type the URL http://localhost/damold/index.html


2. Other Docker commands

Stop apache before starting damold container.

# For Mac OSX
sudo /usr/sbin/apachectl stop

# For ubuntu
sudo service apache2 stop

Run damold docker image

docker run --name damold --restart always -p 80:80 -d damold

Go into damold docker shell to execute any unix commands

docker exec -it 3f599e1d69d4 /bin/bash

In above command 3f599e1d69d4 is Container ID

How to check all running docker image?

docker ps

How to stop damold iamge?

docker stop damold

How to remove damold image?

docker rm damold


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.