Docker Quick Start-common docker commands 1. Introduction to docker commands 1. Introduction to docker commands
You can run the sudo docker or sudo docker HELP
1. Docker command lineDocker is an interactive tutorial designed to help users master the use of Docker command lines in order to get a quick overview of Docker. But thanks to the rapid development of Docker technology, this inter
Docker Quick Start-docker image creation I. dockerfile Script 1. Introduction to dockerfile script
Dockerfile is a text file that contains an instruction. Each instruction creates a layer. Therefore, the content of each instruction describes how to build the layer.Dockerfile example:
# Dockerfile format # This dockerfile uses the Ubuntu image # version 2-Edition
Docker Quick Start series (4): Concepts and operations of data volumes and data volume containers, docker Quick StartIntroduction
Sometimes, some logs are generated when our services are running, or we need to back up the data in the container, or even share data between multiple containers, this must involve data management operations on containers.
There are tw
Docker Quick Start series (2): container concepts and related operations, docker Quick StartWhat is container
To put it simply, an image requires a carrier, which is a container. As mentioned in the previous article, an additional writable file layer will be started after the container loads the image.Let's take the VM as an example. The VM virtualizes the entire
by Falcon of tinylab.orgTai Xiao Salon Phase II @ 2015/04/26Preparing Gitbook environment to install Docker
Take Ubuntu as an example$ echo deb http://get.docker.io/ubuntu docker main | sudo tee /etc/apt/sources.list.d/docker.list$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9$ sudo apt-get update$ sudo apt-get install -y lxc-
Previously wrote an article about Docker installation blog, when recently used again, in the official Docker document found the latest version of the Docker (V18.03) installation method and a little bit different, some commands found to be useless. (really is a day do not study, will be beaten AH). Specific and before the same
Docker Quick Start series (5): basic network configuration and communication during storage, docker Quick StartIntroduction
Two major functional modules that are essential for a web service to run: business processing, data services, and large web services require more components, which usually requires multiple containers, however, we also need to allow network
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES [root@i-k11xnd1o ~]# Docker ps-a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 4c7a7f772b51 Hello-world "/hello" Seconds ago Exited (0) seconds ago Hello afffac98fb68 blockchain101/ethereum-geth:1.6.5 "Bash-c"./rungeth.s "Hours ago
Docker InspectEstimated reading Time:2 minutes
Description
Return low-level information on Docker objects Usage
Docker inspect [OPTIONS] name|id [name|id ...]
Options
Name, Shorthand
Default
Description
--format, F
Format the output using the given go template
--size, S
False
Display Total Fil
executed. The Code is as follows:
if err := cli.Cmd(flag.Args()...); err != nil {if sterr, ok := err.(*utils.StatusError); ok {if sterr.Status != "" {log.Println(sterr.Status)}os.Exit(sterr.StatusCode)}log.Fatal(err)}
In this process, the real execution carrier is CLI. CMD (flag. ARGs ()...), this code parses and executes commands such as "docker pull XXX" and "docker search XXX.
Enter the CMD method in
Where the [] Enclosed as optionalDocker version View the release number of Docker, including client, server, dependent go, etc.Docker Info View System (Docker) level information, including managed images, containers number, etc.Docker search Docker pull Docker push Docker Pu
version
Docker-machine version 0.6.0, build e27fb87
Add source
Add this line to the /etc/apt/sources.list filedeb http://download.virtualbox.org/virtualbox/debian trusty contrib
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
Update and installsudo apt-get update; sudo apt-get install virtualbox-5.0
Configuration
Then there are some configurations that reset the default virtual machine first
Delete
Docker Quick Start series (1): Image concepts and related operationsWhat is Docker?
One of the first questions I encountered about docker is what can docker do? What is docker? Here, let's take a look at Baidu encyclopedia's brief
Well, on the Windows costs a little bit effort to run Docker.1. Need to enable Virtulization:OH hp Windows machine, your need to
Turn Off You laptop
Start it and click ' Esc ' repeatly
Until If jumps a menu, you click F10 to enter ' BIOS setting '
Then find ' Virtualization Technoloy (VTx) ' Select it and save exists.
Computer would restart, finally go to the ' Task Manager ' to ch
1. Use Ststemctl command
Systemctl Enable Docker
2, move the Docker Docker.service service to the system service
# cp/usr/lib/systemd/system/docker.service/etc/systemd/system/#
systemctl daemon-reload #
Systemctl Restart DockerAfter restarting the Docker, the symbolic link is automatically generated under/etc/s
Docker command quick query
Basic syntaxDocker [OPTIONS] COMMAND [arg...] Option-D = true | falseUse the debug mode. The default value is false.
-H, -- host = [unix: // var/run/docker. sock]: tcp: // [host: port] to bind or use unix: // [/path/to/socket.The socket bound in daemon mode uses one or more tcp: // host: port
When we pull a registry image or make a mirror ourselves, using the command Docker run-d-P 5000:5000 Registry, you can start a private container service, so how exactly does it work?First, Docker PS shows that cmd is "docker-registry", but it is not entered when it is starte
This is a creation in
Article, where the information may have evolved or changed.
1, about TIDB
Tidb is inspired by Google's F1 and Google Spanner, TIDB support features that include traditional RDBMS and NoSQL.SQL fully supports MySQL, while others are also a distributed database.What Sub-Library sub-table are weak, this direct division, super convenient. And it's open-source.Is the domestic technology of large Bezoar Dongxu company Pincap developed.It was the man who wrote Codis before.Htt
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.