Docker Datacenter (DDC) is a powerful solution for managing your containerized applications in a production environment. But what if you could kick the tires of DDC on your laptop with just a single script command? Welcome to DDC-In-A-Box!
DDC-In-A-Box is an evaluation script that I wrote which creates a single virtual machine containing Docker Engine, Universal Control Plane (UCP) and Docker Trusted Registry (DTR). The products are licensed using your own license and integrated with each other so you can test out the push/pull integration between UCP and DTR.
Once you have these tools, using DDC-In-A-Box is simple:
- Sign up for a Docker Datacenter trial and download a trial license key to a folder on your computer. It should look something like “docker_subscription.lic”. If you already have a license key you can use that instead.
- Now you need to download and run the shell script. There are two ways to do this:
- Using bash, navigate to the folder where your license key is located. Once there, use the following curl command to download and execute the script:
curl -L https://git.io/vVk8S | bash
- Alternatively, you may download the ddc_evaluation.sh script from https://git.io/vVk8S and place it in the same folder as your trial license key. Then, run the shell script on your computer (on a Mac, use Terminal, navigate to the folder with the script and license key, and type “sh ddc_evaluation.sh”)
- The script will now install and preconfigure DDC in a VM called “ddc-eval” on your laptop. This takes ~10-15 minutes depending on your computer and your internet connectivity.
- When finished, the script will provide you with the IP addresses and admin account credentials for both UCP and DTR. Use your web browser of choice to log in to either product. You may get a “connection is not private” warning which you must click through as the products are using self-signed TLS certificates.
- UCP and DTR are now wired up, licensed, and ready to test!
Under the hood, the script uses docker-machine to create a boot2docker Virtual Machine. A local DNS server (dnsmasq) is used to serve the registry domain name within the VM. Both UCP and DTR are downloaded from Docker Hub, licensed using your license key file, and wired up together with default authentication settings. You can play around with the native Docker CLI client by downloading a UCP client bundle and sourcing it in your local environment. Please note that the domain name that is used by both products as a private docker registry, “ddc.eval.docker.com”, will not be available from your browser as it is internal to the VM.
Note that DDC-In-A-Box is an unofficial script for quickly testing out Docker Datacenter on a single computer and is not suited for multi-node evaluation or production environments. For a more in-depth, multi-node evaluation of UCP we encourage you to check out the evaluation install documentation. If you have any questions about DDC-In-A-Box feel free to ask on the Universal Control Plane forums.
Learn More about Docker
- New to Docker? Try our 10 min online tutorial
- Share images, automate builds, and more with a free Docker Hub account
- Read the Docker 1.10 Release Notes
- Subscribe to Docker Weekly
- Sign up for upcoming Docker Online Meetups
- Attend upcoming Docker Meetups
- Register for DockerCon 2016
- Watch DockerCon EU 2015 videos
- Start contributing to Docker