Couchbase Docker images are always at hub.docker.com/_/couchbase/. Complete instructions to run Couchbase Docker Container are available at docs.docker.com/engine/examples/couchbase/.

Start Couchbase Docker Container

How do you start a Couchbase Docker container?

By default, this command starts Couchbase Server 4.1 Enterprise Edition. The latest GA images are always available using this image name. This server needs to be manually configured by going to the Web Console on http://:8091. The IP address of the Docker Host in my case is obtained using:

The instructions to configure the server are available at at docs.docker.com/engine/examples/couchbase/.

Pre-configured Couchbase Docker Container

If you want a pre-configured server, then you can run the image:

This image is created using Dockerfile and configures the following:

  • Configures the memory
  • Configures Index, Query, and Data service
  • Sets up username/password credentials

Couchbase 4.5 Docker Container

Couchbase 4.5 Developer Preview was launched recently. It can run as a Docker container as:

Notice the image name is couchbase/server:enterprise-4.5.0-DP1. The Couchbase Web Console is then accessible at http://:8091. The IP address of the Docker Host in my case is obtained using:

And so the Web Console looks like:
Couchbase 4.5 Developer Preview
After configuring the services, the Console looks like:
Couchbase 4.5 Developer Preview 1 Console

Pre-configured Couchbase 4.5 Docker Container

Now, if you want a pre-configured server, try this:

This image is created using Dockerfile and configures the following:

  • Configures the memory
  • Configures Index, Query, Data, and Full-text service
  • Sets up username/password credentials

So, here are the images you need to use:

Image Purpose
couchbase  Last GA version of Couchbase
couchbase/server  Intermediate builds of Couchbase, such as Developer Preview, Beta, etc
arungupta/couchbase  Last GA version of Couchbase, pre-configured
arungupta/couchbase-server  Intermediate builds of Couchbase, pre-configured

Easy, eh?

Posted by Arun Gupta, VP, Developer Advocacy, Couchbase

Arun Gupta is the vice president of developer advocacy at Couchbase. He has built and led developer communities for 10+ years at Sun, Oracle, and Red Hat. He has deep expertise in leading cross-functional teams to develop and execute strategy, planning and execution of content, marketing campaigns, and programs. Prior to that he led engineering teams at Sun and is a founding member of the Java EE team. Gupta has authored more than 2,000 blog posts on technology. He has extensive speaking experience in more than 40 countries on myriad topics and is a JavaOne Rock Star for three years in a row. Gupta also founded the Devoxx4Kids chapter in the US and continues to promote technology education among children. An author of several books on technology, an avid runner, a globe trotter, a Java Champion, a JUG leader, NetBeans Dream Team member, and a Docker Captain, he is easily accessible at @arungupta.

Leave a reply