Acropolis Container Services

Acropolis Container Services (ACS) provides the ability to easily deploy and manage containerized applications on the Nutanix platform while offering enterprise-class persistent storage for containers. ACS includes two core capabilities, persistent container volumes and the Nutanix Docker machine driver, which together simplify the process of building a Docker-based container environment on the Nutanix enterprise cloud platform.

clip_image002

Let’s Start…

1. Download & Install Docker Toolbox:

Docker Toolbox will install Docker Machine v0.8.2, alongside the latest versions of the Docker Engine, Compose, Kitematic and VirtualBox.

https://www.docker.com/docker-toolbox

clip_image004

2. Download Docker machine driver to a Docker Toolbox folder “C:\Program Files\Docker Toolbox”

http://download.nutanix.com/utils/docker-machine-driver-nutanix.exe

clip_image005

3. Download & Upload Docker Host VM Image to Nutanix Prism

http://download.nutanix.com/utils/container-host-image-20160628.qcow2

clip_image006

4. Start Docker Quickstart Terminal

 clip_image008

5. Creating Docker Host VM

docker-machine create -d nutanix --nutanix-username admin --nutanix-password ‘P@ssw0rd” --nutanix-endpoint 192.168.1.101:9440 --nutanix-vm-image DockerVMImage --nutanix-vm-network External DockerVM01

Command Arguments:

--nutanix-username: Prism Admin Account

--nutanix-endpoint: CVM’s IP address

--nutanix-vm-network: Network Name

Note: The command must end with the name of the VM

clip_image009

Browse to the VM Page on Prism to check the creation of the Docker Host VM

clip_image011

6. Starting Nutanix Volume Plug-In

a. Log in to the Docker host VM using SSH

docker-machine ssh Docker-VM-01

clip_image012

b. Start the volume plug-in script.

./start-volume-plugin.sh

clip_image014

7.Starting Docker Container

a. Log in to the Docker host VM using SSH

docker-machine ssh Docker-VM-01

clip_image015

b. Enter the following command to start a container with an attached (either newly created or existing) persistent volume group:

docker run -options --volume-driver nutanix --name docker_container_name –v volume_group_name:mount_point docker_image_name

e.g. Running Swagger Editor with a volume group named SWAG and mounted at /data01.

docker run -p 80:8080 --volume-driver nutanix --name swag-v swag:/data01 swaggerapi/swagger-editor

clip_image017

C. Review the new created Volume Group under the Storage Page on Nutanix Prism

clip_image019

D. Open Swagger Editor (http://docker_host_vm_address)

clip_image021

That's all folks!

Ref.

· Download Acropolis Container Services (Docker)

· Containers Enter the Acropolis Data Fabric

No comments:

Post a Comment