---
title: "Dockerizing Mule ESB · Appnovation"
url: "https://www.appnovation.com/insights/dockerizing-mule-esb"
description: "How to run Mule ESB in Docker containers to spin up consistent development, test and clean environments quickly."
---

Article

# Dockerizing Mule ESB

[![](https://cdn.sanity.io/images/ey850001/production/36eb314260fb474cacc1b3a473d7e8402d997898-68x68.png?w=68&auto=format) Appno Blogger Appnovation Coop](/people/appno-blogger.md) Dec 05, 2014  
 3 min read 

![Dockerizing Mule ESB](https://cdn.sanity.io/images/ey850001/production/7c0a150d50d308fe6488f08428bcb97d0d02b68d-1400x400.jpg?w=1400&auto=format) 

Introduction

How many of you as developers have been involved in projects where the need of a Development environment was required during the development process while a Test environment was required for the testing purposes along with a separate clean environment for Production. Different tools have been introduced to build such environments using virtualization to help developers ship applications as fast as possible and simplify the system admins and devops tasks.

In this context, I found Docker a very interesting tool that is easy to use and it greatly simplifies the process of environments setup and thus separate the application development process from the infrastructure aspect [Ref\[1\] (opens in new window)](http://docs.docker.com).

How it works?

To start using Docker we need to have it installed, follow the steps as described in [Ref\[2\] (opens in new window)](http://docs.docker.com/installation/#installation) to install it.

To understand what's Docker is all about and have a flaviour of how it works, let's run some example commands. Basically, Docker allows running applications inside a container with a single command: docker run.

Type in the following commands assuming Docker has been already installed:

boot2docker init

boot2docker start

The following illustrates the commands output results:

As an example, to have an ubuntu container up an running, invoke the following command:

docker run --it ubuntu bash

This command launches a container with ubuntu OS as follows:

The command decription:

docker run : runs the container.

ubuntu : the ubuntu OS image, that is the source of the container we run.

Docker first looks for the image in the Docker host, if it is not found then it will be downloaded from the Docker Hub.

-t : flag that assigns a terminal inside our running container.

-i : flag that makes the STDIN available for an interactive connection.

bash: the command that launches a bash shell inside the runnung container.

Build Mule ESB container

As a MuleSoft developer, I need to run different instances of Mule ESB, to achieve this we need to build a mule image using the Dockerfile script available here [Ref\[3\] (opens in new window)](https://github.com/cpoepke/docker/blob/master/mule-ee/Dockerfile#sthash.Gt8DdZK0.dpuf). This script can be easily converted to build a docker image with the most recent mule version.

For more details on how to build an image using Docker, read the Dockerfile reference available here [Ref\[4\] (opens in new window)](http://docs.docker.com/reference/builder/).

The Dockerfile containg the script that builds the image must be saved with Mule ESB enterpise edition in a folder as the following:

/Dockerfile

/mmc-distribution-mule-console-bundle-3.5.1.zip

To build and tag Mule Docker image run the following command:

docker build --tag=”mule-ee” .

At the end when the image build is successful, run a test by starting a Mule ESB Enterprise instance as follow:

docker run -t -i --name='mule-ee-instance1' mule-ee

The following illustrates the running containers using the command docker ps:

This whows that there is only one running container with ID: d63b0edb4302 using the built image my-mule-app-image.

References:

Ref\[1\]: [http://docs.docker.com (opens in new window)](http://docs.docker.com/)

Ref\[2\]: [http://docs.docker.com/installation/#installation (opens in new window)](http://docs.docker.com/installation/#installation)

Ref\[3\]: [https://github.com/cpoepke/docker/blob/master/mule-ee/Dockerfile (opens in new window)](https://github.com/cpoepke/docker/blob/master/mule-ee/Dockerfile)

Ref\[4\]: [http://docs.docker.com/reference/builder/ (opens in new window)](http://docs.docker.com/reference/builder/)

[![](https://cdn.sanity.io/images/ey850001/production/36eb314260fb474cacc1b3a473d7e8402d997898-68x68.png?w=68&auto=format) Appno Blogger Appnovation Coop · Appnovation](/people/appno-blogger.md) 

## Keep reading

[![What is Sovereign AI](https://cdn.sanity.io/images/ey850001/production/a5889abdd5e80376912546622e046e3fbef234b4-2496x1664.png?w=640&auto=format)](/insights/what-is-open-source-sovereign-ai.md)

 Article · 7 min AI 

### [What Is Open Source, Sovereign AI?](/insights/what-is-open-source-sovereign-ai.md)

Every company is encouraging more AI, and almost every AI bill is climbing. Sovereign AI is about two kinds of control: over your data and over your costs. Here's why open source sits at its foundation.

[Iain MacNeil](/people/iain-macneil.md) Article 

[![AI-first experience design](https://cdn.sanity.io/images/ey850001/production/8bbc2418e87924ef10f36115478a2e10d5bed95e-1584x624.jpg?w=640&auto=format)](/insights/how-build-ai-first-experience-without-throwing-out-everything-youve-already-built.md)

 Article · 6 min AI Sep 10, 2026 

### [How to Build an AI-First Experience Without Throwing Out Everything You've Already Built](/insights/how-build-ai-first-experience-without-throwing-out-everything-youve-already-built.md)

Users now expect a direct answer, not a list of links to click through. Here's how organizations can layer an AI-First experience onto their existing website or app, in weeks rather than years.

[Andrew Douglas](/people/andrew-douglas.md) Article 

[![What Becomes Possible When AI Can Read All the Data](https://cdn.sanity.io/images/ey850001/production/c28ab0bd26753421ee42937e13adc7a7f19b47f0-1296x510.jpg?w=640&auto=format)](/insights/what-becomes-possible-when-ai-can-read-all-data.md)

 Article · 4 min AI Sep 09, 2026 

### [What Becomes Possible When AI Can Read All the Data](/insights/what-becomes-possible-when-ai-can-read-all-data.md)

Most of the world's data has never been analyzed, only sampled. AI changes that. How AI-ready data platforms unlock questions no one could ask before.

[Appnovation](/people/appnovation.md) Article 

## Get the thinking,  
*before everyone else.*

One considered email a month. New essays, field notes from live engagements, and the occasional strong opinion. No noise.
