Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to apply to create a Docker container on Google Container Engine

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "how to apply to create a Docker container on Google Container Engine". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to apply to create a Docker container on Google Container Engine.

(1) apply for a Google account.

(2) activate Google billing, that is, bind a payment credit card to pay for services that use Google. In order to verify that the credit card is available during the activation process, you need to pay a fee of $1.

Activate payment address: https://console.developers.google.com/billing?_ga=1.62759852.1080048005.1441690490

After the payment is activated, you can see some of the services that can be used, and you can see that you can use them for 60 days for free.

(3) activate Google API

After activation, you can use the following two services:

Google Container Engine API

Google Compute Engine and associated APIs

Create a gerry-test-proj project:

Then click create, which will automatically jump to the currently created project:

(4) install gcloud

To Google Cloud SDK, you can download to various versions of the client: https://cloud.google.com/sdk/#windows

The installation method is also described. After the installation is complete, you can take a look at how to use gcloud:

The code is as follows:

Root@gerryyang:~# gcloud-h

Usage: gcloud [optional flags]

Group may be auth | components | compute | config | container |

Deployment-manager | dns | sql | topic

Command may be docker | feedback | help | info | init | version

The * gcloud* CLI manages authentication, local configuration, developer

Workflow, and interactions with the Google Cloud Platform APIs.

Optional flags:

-- account ACCOUNT Google Cloud Platform user account to use for

Invocation.

-- format FORMAT Format for printed output.

-- help Display detailed help.

-- log-http LOG_HTTP Logs all HTTP server requests and responses to stderr.

(true/false)

-- project PROJECT_ID Google Cloud Platform project ID to use for this

Invocation.

-quiet,-q Disable all interactive prompts.

-- trace-token TRACE_TOKEN

Token used to route traces of service requests for

Investigation of issues.

-- user-output-enabled USER_OUTPUT_ENABLED

Control whether user intended output is printed to the

Console. (true/false)

-- verbosity VERBOSITY Override the default verbosity for this command. This

Must be a standard logging verbosity level: [debug

Info, warning, error, critical, none] (Default:

[warning]).

-h Print a summary help and exit.

-v,-- version Print version information.

Command groups:

Auth Manage oauth3 credentials for the Google Cloud SDK.

Components List, install, update, or remove Google Cloud SDK

Components or packages.

Compute Read and manipulate Google Compute Engine resources.

Config View and edit Google Cloud SDK properties.

Container Deploy and manage clusters of machines for running

Containers.

Deployment-manager Manage deployments of cloud resources.

Dns Manage your Cloud DNS managed-zones and record-sets.

Sql Manage Cloud SQL databases.

Topic gcloud supplementary help.

Commands:

Docker Provides the docker CLI access to the Google Container

Registry.

Feedback Provide feedback to the Google Cloud SDK team.

Help Prints detailed help messages for the specified

Commands.

Info Display information about the current gcloud

Environment.

Init Create and initialize a gcloud workspace in the current

Directory.

Version Print version information for Cloud SDK components.

Then log in to the GCP account using gcloud (that is, complete the authentication):

At this point, I believe you have a deeper understanding of "how to apply to create a Docker container on Google Container Engine". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report