Create and use a Dockerized Aruba Cloud server - CloudConf 2017
1. CREATE AND USE A
DOCKERIZED ARUBA CLOUD SERVER
16th March 2017
Turin, Cloud Conference 2017
#cloudconf2017
2. Docker-machine: What Is It?
• it is a tool to provision multiple Docker hosts
• dockerize local or remote hosts
• provision Swarm cluster
• ArubaCloud is driver to manage dockerized
servers on our platform
3. ArubaCloud Solutions
• PRO Server (VMware, Hyper-V)
• flexible configuration
• cost per hour
• Smart Server (VMware with SSD storage)
• available in 4 sizes
4. New ArubaCloud Server (1/2)
• ac_action: NewSmart/NewPro
• Configuration parameters
• ac_endpoint: dc1, dc2, …, dc6
• ac_template: Ubuntu, centOS, etc.
• ac_size: Small, Medium, Large, Extra
Large
5. New ArubaCloud Server (2/2)
• Credential parameters
• ac_username: Aruba Cloud username
• ac_password: Aruba Cloud password
• ac_admin_password: root password,
required for recovery console
• ac_ssh_key: Key Path (optional)
• All parameters can be set as enviroment
variables
8. Attach and Reset Server
• Reset of Smart machines (ex. to change
OS)
• How to reset a dockerized smart server?
• Attach Docker to preexisting machines
11. Supported Commands
docker-machine env MyDockerHostName
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://77.81.236.228:2376"
export
DOCKER_CERT_PATH="C:Usersmarco.barzaghi.dockermachinemachinesMy
DockerHostName"
export DOCKER_MACHINE_NAME="MyDockerHostName"
export COMPOSE_CONVERT_WINDOWS_PATHS="true"
# Run this command to configure your shell:
# eval $("C:Program FilesDockerDockerResourcesbindocker-
machine.exe" env MyDockerHostName)
12. Supported Commands
docker-machine stop MyDockerHostName
Stopping "MyDockerHostName"...
Machine "MyDockerHostName" was stopped.
docker-machine start MyDockerHostName
Starting " MyDockerHostName "...
Machine " MyDockerHostName " was started.
Waiting for SSH to be available...
Detecting the provisioner...
Started machines may have new IP addresses. You may need to re-run
the `docker-machine env` command.
14. Verify Docker Engine (2/2)
In a web browser, go to http://<IP>:8000 to bring up the webserver home page.
15. Notes
• Command rm deletes the remote server
• With Pro machines command rm does not
delete ip address
• don’t forget to remove the purchased IP address using the web
dashboard if you don't need it anymore
• With Pro machines it is possible to reuse
an ip Address with argument ac_ip
• --ac_ip=“xx.xx.xx.xx”
17. How to Create an Account?
• Go to cloud.it
• Get a free voucher at https://www.cloud.it/prova-
cloud-aruba.aspx
• Top up your account
• We’ll send your Aruba Cloud credentials
via email