1874 2018-06-19 16:57:41 root yum install docker 1875 2018-06-19 17:05:50 root docker --version 1876 2018-06-19 17:05:55 root docker version 1877 2018-06-19 17:06:10 root service docker start 1878 2018-06-19 17:06:13 root docker version 1879 2018-06-19 17:07:11 root systemctl enable docker.service 1880 2018-06-19 17:07:52 root docker pull centos 1881 2018-06-19 17:09:05 root ls 1882 2018-06-19 17:09:11 root docker images 1883 2018-06-19 18:22:24 root ls 1884 2018-06-19 19:00:57 root docker images 1885 2018-06-19 19:00:58 root ls 1886 2018-06-19 19:01:10 root cd .. 1887 2018-06-19 19:01:12 root ls 1888 2018-06-19 19:01:16 root cd tmsoft/ 1889 2018-06-19 19:01:16 root ls 1890 2018-06-19 19:01:19 root pwd 1891 2018-06-19 19:02:40 root docker run -it -v /data/tmsoft:/data/tmsoft docker.io/centos /bin/bash 1892 2018-06-19 19:12:38 root ls 1893 2018-06-19 19:12:42 root docker images 1894 2018-06-19 19:13:10 root docker run -it -v /data/tmsoft:/data/tmsoft docker.io/centos /bin/bash 1895 2018-06-19 19:14:23 root ls 1896 2018-06-19 19:14:27 root daocker images 1897 2018-06-19 19:14:32 root docker images 1898 2018-06-19 19:14:44 root docker rmi 49 1899 2018-06-19 19:14:48 root docker ps 1900 2018-06-19 19:14:57 root docker ps -a 1901 2018-06-19 19:15:14 root docker stop 722 1902 2018-06-19 19:15:19 root docker stop fb 1903 2018-06-19 19:15:24 root docker ps -a 1904 2018-06-19 19:15:31 root docker rm 722 1905 2018-06-19 19:15:37 root docker rm fb2 1906 2018-06-19 19:15:40 root docker ps -a 1907 2018-06-19 19:17:34 root docker images 1908 2018-06-19 19:17:46 root docker rmi 49 1909 2018-06-19 19:17:49 root ls 1910 2018-06-19 19:17:54 root docker iamges 1911 2018-06-19 19:17:57 root docker images 1912 2018-06-19 19:17:58 root ls 1913 2018-06-19 19:18:28 root docker search images 1914 2018-06-19 19:18:37 root docker search mariadb 1915 2018-06-20 12:47:56 root docker-compose 1916 2018-06-20 12:50:48 root cd /data 1917 2018-06-20 12:50:48 root ls 1918 2018-06-20 12:50:52 root cd tmsoft/ 1919 2018-06-20 12:50:53 root ls 1920 2018-06-20 12:50:56 root curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose 1921 2018-06-20 12:51:27 root chmod +x /usr/local/bin/docker-compose 1922 2018-06-20 12:53:45 root docker-compose --version
docker日常使用命令全部包含在里面了。做一个笔记,方便以后看