카우치베이스 서버

도커 클라우드 시작하기

Deploying Docker to Amazon using Tutum explained how to deploy a Docker image to Docker Tutum. Tutum is now Docker Cloud.

Read Announcing Docker Cloud 자세한 내용은.

Docker Cloud Logo

The key features of Docker Cloud are:

  • Authentication using Docker ID
  • Integration with Docker Hub
  • Support for Docker official repositories
  • Commercially supported Docker Engine
  • Ability to deploy and scale your applications using GUI, API and CLI

This blog will show:

  • Key concepts of Docker Cloud
  • How to create a new Docker Cloud Node
  • How to install Docker Cloud CLI
  • How to create a new Docker Cloud Service
  • Access Couchbase Server in Docker Cloud
  • How to terminate the Docker Cloud Service and Node

And finally it’ll leave with some references for Docker Cloud docs.

The blog will use 카우치베이스 서버 – an open source, highly scalable,  JSON document database for the Docker image.

Docker Cloud TL;DR

Here are the quick commands to run a Docker image using Docker Cloud in Amazon:

More details below.

Key Concepts of Docker Cloud

Let’s understand the core concepts of Docker Cloud:

  • Nodes are individual Linux hosts/VMs used to deploy and run your applications. New nodes can be provisioned to increase the capacity. Docker Cloud does not provide hosting services. Nodes are provisioned using physical servers, virtual machine or cloud providers.
  • Node Clusters are logical groups of nodes of the same type. Node Clusters allow to scale the infrastructure easily by provisioning more nodes.
  • Services are logical groups of containers from the same image. Services make it simple to scale your application across different nodes.

Docker Cloud can be managed with Web, CLI 또는 REST API. This blog will use the Docker Cloud CLI to perform all the commands.

Install Docker Cloud CLI

Install Docker Cloud CLI:

Complete installation instructions are at Installing CLI. Check version:

Complete set of commands are:

Save the login credentials:

Create new Docker Cloud Node

Register your cloud provider credentials with Docker Cloud Web UI as explained in Link to a Cloud Service Provider. Amazon, Digital Ocean, Azure, and other cloud providers are supported.

Create a new node cluster with a single node:

This node cluster has a single node (-t 1) and uses the tag “couchbase” (--tag couchbase). Last four parameters are nodecluster name (couchbase-node, provider (aws, region (us-west-1 and nodetype (m3.large).

Each node in this node cluster will be given the assigned tag. This will be used later to assign services to a specific node or node cluster.

Status of this node cluster can be checked:

The dashboard at cloud.docker.com is updated to show: Docker Cloud Node Created Dashboard

More information about each node can be seen as well: Docker Cloud Created Node

Create a new Docker Cloud Service

Create a Docker Cloud Service:

If multiple node clusters exists, then --tag is used to assign a service to a node cluster. docker-cli#10 is filed to ensure multiple ports can be exposed using -p 8091-8093:8091-8093 format. This will be aligned with the docker CLI.

Docker image used here is arungupta/couchbase. This image is based on the official 카우치베이스 image at Docker Hub 그리고 pre-configures it for different services.

Start the Docker Cloud Service:

The updated dashboard looks like:

Docker Cloud Service Started

Get the Docker Cloud Service logs:

The log shows output from the Couchbase REST API invoked to configure the Couchbase server.

Access Couchbase Server in Docker Cloud

Inspect the Docker Cloud service for the exposed container ports:

0

To be more specific, exact URI for the 카우치베이스 웹 콘솔 can be obtained as:

1

Access the Couchbase Web Console at https://couchbase-b9132b42.936dbe58.svc.dockerapp.io:8091/ to see the Couchbase Web Console login screen. Enter the password credentials of 관리자 그리고 비밀번호. Docker Cloud Couchbase Login Page

And the 카우치베이스 웹 콘솔 looks like:

Docker Cloud Couchbase Web Console

Terminate the Docker Cloud Service and Node

Check the list of Docker Cloud services running:

2

Terminate the service:

3

Check the list of nodes:

4

Terminate the node as:

5

Docker Cloud References

In this blog, you learned:

  • Key concepts of Docker Cloud
  • How to create a new Docker Cloud Node
  • How to install Docker Cloud CLI
  • How to create a new Docker Cloud Service
  • Access Couchbase Server in Docker Cloud
  • How to terminate the Docker Cloud Service and Node

Enjoy! Source: https://www.couchbase.com/blog/getting-started-docker-cloud/

이 기사 공유하기

작가

아룬 구프트는 Couchbase의 개발자 옹호 부문 부사장입니다. 그는 Sun, Oracle, Red Hat에서 10년 이상 개발자 커뮤니티를 구축하고 이끌었습니다. 그는 복수 기능군을 갖춘 팀을 이끌고 전략, 계획, 실행, 콘텐츠, 마케팅 캠페인 및 프로그램 개발과 실행에 대한 깊은 전문 지식을 보유하고 있습니다. 그 이전에는 Sun의 엔지니어링 팀을 이끌었으며, Java EE 팀의 창립 멤버입니다. 구푸타는 기술 분야에 대한 2,000개 이상의 블로그 게시물을 작성했습니다. 그는 수많은 주제에 대해 40개 이상의 국가에서 폭넓은 강연 경험을 보유하고 있으며, 3년 연속 JavaOne Rock Star상을 수상했습니다. 또한 그는 미국에서 Devoxx4Kids 지부를 설립했으며, 어린이들에게 기술 교육을 지속적으로 추진하고 있습니다. 기술 분야에 대한 다수의 책의 저자이자 열정적인 러너인 그는 전 세계를 누비며 Java Champion로 활동하고 있으며, JUG 리더이자 JUG Dream Team 멤버인 NetBeans Dream Team의 일원입니다. 그는 @arungupta라는 계정을 통해 쉽게 연락하실 수 있습니다.

댓글 남기기

데이터베이스의 확장성을 과거의 일로 남겨두세요

각 스택 추가마다 추가 비용이 발생하고 관리해야 할 항목도 더 많아집니다. 2분 안에 절약할 수 있는 금액을 추산해 보세요.