Following the CoreOS and Atomic mirror on-line, the engraved cloud followed the development of Docker technology, recently launched the Ubuntu core image, become the first to support the Ubuntu core image of the basic cloud service provider, but also the only domestic support CoreOS, Atomic and Ubuntu core mirrored cloud service providers, fully support users to easily deploy Docker applications on the cloud platform.
Here's how to quickly deploy a Docker app on Kcloud, here's an example of Ubuntu core Mirroring (Others):
First, create Ubuntu core Cloud Host
1, open the keytone Cloud Console, click on the Left "calculation" menu, go to the "Cloud Host" interface, click the "Create" button, then go to the cloud host creation interface, here to select the Ubuntu Core Image:
2, Ubuntu core image support SSH key or PASSWORD two kinds of login mode, for convenience here we choose PASSWORD way:
3, to the cloud host after the successful creation, we also need to bind a public network IP:
4, the final network topology structure is as follows:
Ii. deployment of Docker basic applications
Here we take the example of Docker running MySQL service.
1, into the cloud host "VNC Login" interface, log in before the creation of the Ubuntucore Cloud Host (user name is Ubuntu):
2, because there is currently no MySQL image, so we need to pull up the latest MySQL image:
sudo docker pull Mysql:latest
3, below we use Docker to start a MySQL container, and port mapping, so that the test external access to the MySQL service (for testing only):
sudo docker run--name mysql_test-e mysql_root_password=mysql_test-p 5000:3306-dmysql
a. note here's-P parameter, which indicates the port mapped to 3306 inside the container port, so by accessing the cloud host's port for easy access to MySQL container service
B. make sure that the cloud host's security group is open to the port
4. Test the MySQL service from local access to the remote Kcloud Cloud host:
Based on the previous MySQL service, we started a WordPress container service to test communication between containers.
1, first we pull the latest WordPress container Image:
sudo docker pull Wordpress:latest
2, because the previously created MySQL here only for WordPress to provide database services, so here we can close the previous MySQL container, and then restart a:
sudo docker kill Mysql_test
sudo docker rm mysql_test
sudo docker run--name mysql_test-emysql_root_password=mysql_test-d MySQL
3, again a WordPress container, and the front of the MySQL container interconnect, and port mapping, so that external access to the WordPress service:
sudo docker run--name word_press--linkmysql_test:mysql-p 5000:80-d WordPress
a. Note the parameters here--link show that the container mysql_test and Container word_press qualitative is by establishing a tunnel between two containers so sensitive services are not exposed to
4, now we You can
Above usExperienceTheIn KcloudQuickly deploy Docker onApplicationThe process of technology applied to the development test and operation and maintenance platform, To Docker to achieve CaaS (Container as a Service) for enterprises to provide efficient Iaas
Easily "play" Docker on Kcloud