centos docker community version install:
yum -y install docker         # install docker
systemctl start docker.service               # start docker service
systemctl enable docker.service       # enale docker service when power on
docker run hello-world  # need to pull from docker repository the first time docker container:
docker build -t friendlyname . # Create image using this directory's Dockerfile
docker run -d -p 4000:80 friendlyname # detached mode,4000(image) 80(localhost)
docker run -p 4000:80 friendlyname # Run "friendlyname" mapping port 4000 to 80
docker container ls # List all running containers
docker container ls -a # List all containers, even those not running
docker container stop <hash> # Gracefully stop the specified container
docker container kill <hash> # Force shutdown of the specified container
docker container rm <hash> # Remove specified container from this machine
docker container rm $(docker container ls -a -q) # Remove all containers
docker image ls -a # List all images on this machine
docker image rm <image id> # Remove specified image from this machine
docker image rm $(docker image ls -a -q) # Remove all images from this machine
docker login # Log in this CLI session using your Docker credentials
docker tag <image> username/repository:tag # Tag <image> for upload to registry
docker push username/repository:tag # Upload tagged image to registry
docker run username/repository:tag # Run image from a registry docker services:
docker swarm init # first time you deploy an app or after you shutdown the swarm
docker stack ls # List stacks or apps
docker stack deploy -c <composefile> <appname> # Run the specified Compose file
docker service ls # List running services associated with an app
docker service ps <service> # List tasks associated with an app
docker inspect <task or container> # Inspect task or container
docker container ls -q # List container IDs
docker stack rm <appname> # Tear down an application
docker swarm leave --force # Take down a single node swarm from the manager docker swarm:
docker pull docker.io/vickeywu/docker_test:test
or docker run -p 8080:8080 vickeywu/docker_test:test
curl localhost:8080
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install kernel-devel kernel-headers dkms
yum -y groupinstall "Development Tools"
yum -y update
wget http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
rpm --import oracle_vbox.asc
wget http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo -O /etc/yum.repos.d/virtualbox.repo
yum -y install VirtualBox-5.1
systemctl start vboxdrv.service
usermod -a -G vboxusers root

references:

install:http://www.linuxidc.com/Linux/2014-12/110034.htm

container:https://docs.docker.com/get-started/

swarm:http://www.itzgeek.com/how-tos/linux/centos-how-tos/install-virtualbox-4-3-on-centos-7-rhel-7.html

最新文章

  1. ASP.NET Core 源码阅读笔记(5) ---Microsoft.AspNetCore.Routing路由
  2. C++ 虚拟继承
  3. ubuntn svn 安装 配置
  4. Linux系统(一)文件系统、压缩、打包操作总结
  5. php implode()函数详解
  6. require和require_once的区别
  7. SQLServer之创建隐式事务
  8. C#实现短链接生成服务
  9. 自定义导航栏 tabBarController 笔记
  10. 20175316 盛茂淞 实验一 Java开发环境的熟悉
  11. python运算符基础实例
  12. AC自动机模板1
  13. Lua date format
  14. HTTPS工作原理和TCP握手机制
  15. git 未能顺利结束 (退出码 1)
  16. 《大话设计模式》ruby版代码:外观模式
  17. webpack 踩的坑
  18. Docker Toolbox常见错误解决方案
  19. 【Tempest】openstack自动化测试组件tempest及自动化测试工具nose
  20. Vue学习(四):条件渲染

热门文章

  1. View Controller Programming Guide for iOS---(四)---Creating Custom Content View Controllers
  2. 一个获取google chrome扩展crx文件信息的PHP操作类
  3. 两行代码搞定网站gzip压缩
  4. E20170403-gg
  5. 洛谷 - P2774 - 方格取数问题 - 二分图最大独立点集 - 最小割
  6. [Swift]有用的Binary Heap Type类
  7. PJzhang:计算机本地密码提取工具LaZagne
  8. 洛谷 P4585 [FJOI2015]火星商店问题
  9. 人品问题 树形dp
  10. magento性能分析插件