First of all, the personal understanding, Docker is similar to a Linux internal isolation of the sandbox, in the form of git, can be virtual out of a Linux version or the physical machine system itself.
When I first heard it, I thought it was a retarded version of the virtual machine, and later I thought I understood or the pattern. In the VM installed a play (seemingly only support 64bit Oh pro)
Docker's Chinese station has also started:Docker. CN
Docker English Station homepage has a simulation, can also be used to play: Click to open the link
1, open, basic format, see version.
After loading the input docker, you can see what commands you have, and git looks like it.
Docker version view versions.
2. Docker Search
The default is to pull the image from the official warehouse, you can build a private mirror library, built with Apt-key (Dockercn also has image source), the simulator does not have this thing.
The place is here:
/etc/apt/sources.list.d/docker.list
3. Download image
Docker pull +<username>/<repository>
Download it:
4, run the command in the mirror, this command is not related to your physical Linux system.
These actions will be recorded, pretending to be in effect (personal understanding)
The example in the tutorial is let's install a package, okay, then just load it up and look at the executed command.
Docker Ps-l saw the action
Then a new branch was uploaded:docker commit [ID] new name/branch
The new branch ID is returned
You can then execute the new command with the new branch.
Then Docker PS can look at all the containers that are running
Docker Inspect + ID allows you to view specific information about the virtual container.
Finally, you can use the Docker push command to upload to your container repository.
Common commands:
Docker
Docker run
Docker Search
Docker pull
Docker push
Docker PS
Docker Inspect
Docker Online Tutorial Learning Notes