Wednesday, August 15, 2018

Running Redmine using Docker


Run into Docker recently and would like to work on something. Let's try on running Redmine using Docker. Following are the steps to get it running in your localhost:

1. Install and get docker running in your PC.
2. Run into command prompt and start doing the real docker job.
3. In the command prompt pull Redmine using the following command:
$ docker pull redmine
4. Once you docker pull redmine successfully, now you can run redmine in a container using the following command:
$ docker run -d -P --name myRedmine redmine
-d will detach out terminal
-P will publish all exposed ports to random ports
-name corresponds to a name we want to give
5. Now we can see the ports by running the following
$ docker port myRedmine 3000/tcp -> 0.0.0.0:32769
6. You can now open http://localhost:32769. You might need to wait a while for redmine to start.
7. You can also specify a custom port to which the client will forward connections to the container using the following command :
$ docker run -d -p 8080:3000 --name myRedmine redmine