Virtualization - Cloud Computing - Docker

Latest survey: OpenStack, Docker, KVM rated as hottest cloud open source projects

Difference between Docker and KVM

The relationship between docker and openstack


Cloud computing software engineer (kvm virtualization technology, openstack cloud computing technology)


Docker Community Edition (CE) and Enterprise Edition (EE)

Docker Chinese website

Docker's three concepts: image, container and warehouse?  (The image is similar to the java class, the container is the object, and the warehouse is the server that stores the image)


Domestic docker warehouse mirror pair

Cloud domestic:


NetEase Honeycomb https://c.163.com/   https://c.163.com/hub#/m/home/

aliyun 容器 https://cs.console.aliyun.com  https://www.aliyun.com/product/containerservice   https://dev.aliyun.com/search.html

Use aliyun image acceleration , my Aliyun acceleration address: https://y3uhkhih.mirror.aliyuncs.com

Qingyun  https://qingcloud.com/

daoClound  http://get.daocloud.io/     daocloud accelerator configuration   https://hub.daocloud.io/

MoPaaS https://www.mopaas.com/

Boyun http://www.bocloud.com.cn/

Rank http://www.china-10.com/china/1228yzj_index.html


DevOps: ( combination of English Development and Operations )


Three service models of cloud computing: IaaS, PaaS and SaaS


Comparison of IaaS, PaaS and SaaS cloud services and their corresponding providers

1: Infrastructure (infrastructure)-as-a-Service , physical machine/virtual machine, network resources and other resources, such as: Amazon's EC2 , Microsoft's Azure , Rackspace's OpenStack , IBM, VMWare's vCloud; domestic ones such as Ali Cloud (aliyun) , Qingyun (qingcloud) and mobile big cloud (big cloud) , etc.

2: Platform (platform)-as-a-Service , which provides users with a computing platform that usually includes an operating system, a programming language operating environment, a database, a Web server, and so on. Some major service providers: AWS Elastic Beanstalk, Heroku, Force.com, Google's GAE (Google App Engine), Sina SAE , Baidu Cloud 's Development Engine, etc.

3: Software (software)-as-a-Service . The infrastructure is at the bottom, the platform is in the middle, and the software is at the top; such as: Google's Apps, Microsoft's Office 365, Citrix's CloudStack, and various popular cloud storages (network disks), cloud albums, cloud backup, cloud Printing, cloud monitoring, etc. are cloud service products for personal use.


Docker: Docker is a C/S architecture technology based on Linux container ( Container ) LXC. The containers and images are similar to object-oriented classes and objects.

KVM: Virtualizer, Xen/KVM/vSphere/HyperV (Xen: v mware and Citrix open source Xen ), HyperV Microsoft develops Xen-like virtualization technology, vSphere is vmware's enterprise-level virtualization solution, both are Hypervisors

OpenStack: Cloud Computing


Hypervisor or Container projects, Infrastructure as a Service (IaaS), Platform as a Service (PaaS)


TechTarget China original content, original link:  http://www.searchsv.com.cn/showcontent_84583.htm
© TechTarget China: http:// www.techtarget.com.cn


SpringCloud tutorial: docker deploy spring cloud project

The old section takes you to learn to deploy Docker series of video courses

Containerized Architecture Design under the Docker Trend (Part 1)

Docker builds enterprise PAAS platform - Docker introduction and enterprise practice



Build, run, and publish a Spring Boot application with Docker

Build, run, and publish a Spring Boot application with Docker

[Technical dry goods] A collection of Docker essential learning materials, old drivers get on the bus

Common docker commands, and some pits

Docker Notes (1)--Use of the official tomcat image (startup)


==============================Docker Lesson 1 Running spring boot in a container Embedded tomcat project === =====

Personally, I came into contact with maven in 2013, but they are all based on tools such as idea or myeclipse. I rarely use the commands myself. The following is a list of the commands I commonly use.

mvn package: Compile the project and package the project as a jar package or war package
#1 mvn package docker:build ###Execute build as docker image:
#2 docker run -p 8999:8999 -t dazer/safety ###Run docker, dazer/safety is the name of the built docker image; run in the background (-d), and expose the port (-p); pay attention to view the container's Whether the time is the same as the local time.
Browser access: http://localhost:8999/safety
==========The above two steps of spring boot embedded tomcat form use docker to run successfully ================
#3 View the history of the image docker history dazer/safety
#4 If the container is shut down, restart docker start -i 4925cef05d35

delete a container; delete multiple containers; enter the interior of a container; delete all containers; display the history of images;

Image and container are similar to the relationship between classes and objects in java;



Finally, attach the docker common commands

docker ps to view running containers 

docker ps -a View stopped containers 

docker ps -q only lists container IDs 

docker ps -s shows the container size.

docker images View images 

docker images -q only lists image IDs 

docker images --tree Lists all commit histories of an image in a tree-like structure. 

docker pull IMAGE_ID download image 

docker push IMAGE_ID 上传image 

docker rmi IMAGE_ID delete image 

docker rmi -f forcibly removes the image, even if it is in use;

docker logs -f <container name orID> View container logs

docker start|stop|restart Starts, stops, and restarts one or more specified containers.

Start a container and enter interactive mode

Docker container image deletion





==============================Docker Lesson 2 Push the image to Docker Hub to get the image and execute ====== ==

docker login, the default login is   https://registry-1.docker.io/v2/ of foreign docker

Enter Daoclound username and password dazer jiaojiao  

sudo docker login daocloud.io

How to upload docke images to dockerhub repository and Alibaba Cloud docker repository    https://yq.aliyun.com/articles/70756    aliyun image tutorial

How to push a docker image to NetEase Hive   to push a local image? https://hub.c.163.com/v2/

docker login -u {你的蜂巢邮箱账号或手机号码} -p {你的蜂巢密码} hub.c.163.com            [email protected]/oldab
docker tag dazer/safety hub.c.163.com/dazer1992/safety:0.01 Step 1: Label the local image, the label corresponds to the server to be uploaded

docker push hub.c.163.com/dazer1992/safety:0.0.1 Step 2: Push the local image to the server


The operation method is shown in the figure:

网易蜂巢docker镜像上传使用


======================Docker 第三课 拉去服务器镜像 、进行运行==================================

docker pull hub.c.163.com/dazer1992/safety:0.01      第一步:拉去镜像    
docker run -p 8999:8999 -t hub.c.163.com/dazer1992/safety:0.01   第二步:运行镜像


=========================Git Svn 国内服务==================================================

参见自己博客

1
docker run -i -t -p <host_port:contain_port>

将一个container固化为一个新的image,后面的repo:tag可选

?
1
docker commit <container> [repo:tag]

删除一个或多个container

?
1
docker rm <container...>

删除所有的container

?
1
docker rm `docker ps -a -q`

同上, 删除所有的container

?
1
docker ps -a -q | xargs docker rm

?


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325693870&siteId=291194637