Docker Learning Notes

Source: Internet
Author: User

Yum Install libdevmapper*-y
217 Yum Install http://ftp.riken.jp/Linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm centos7.0# #yum Install libdevmapper*-y
218 Yum install-y Docker-io Yum install Docker
219 Docker-h

221 Service Docker Status
222 Service Docker Start
223 Docker pull Ubuntu
224 Docker Images

226 Docker Tag Ubuntu:latest luo:latest
Docker Run-t-I luo/bin/bash creates a container with the Luo image that runs the Bash app
Docker search MySQL//searching for images with MySQL keyword
Docker RMI luo1//Delete LUO1 The specified label for this image
Docker Run Luo echo "Hello World" creates a container using the Luo image and then executes the echo command
Docker ps-a View all existing containers on this machine
Docker RM af Removes a container with the ID AF

Enter the container:
Docker exec-it <container_id>/bin/bash
Container memory copies files to each other
Docker CP foo.txt Mycontainer:/foo.txt mycontainer_name or container ID
Docker CP Mycontainer:/foo.txt Foo.txt

Docker Learning Notes

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.