1.docker Introduction
Stay the fox.
Docker is an open-source application container engine that allows developers to package their applications and dependencies into a portable container, and then publish them to any popular Linux machine or virtualize them. Containers are completely sandbox-aware, with no interface (like IPhone apps) between them. There is little performance overhead and can be easily run in the machine and data center. Most importantly, they are not dependent on any language, framework or system.
2. Installation method One:
sudo apt-get updatesudo apt-get install Docker.io
Method Two (Install the latest version):
3. Status command
sudo service Docker status #查看状态sudo service Docker start #启动sudo service Docker stop #关闭sudo service Docker R Estart #重启
4. View the Docker version
Docker-v
5. User group Related Settings
Join the current user to the Docker user group
6. Add a configuration file
sudo vi/etc/default/docker
Add or modify in a configuration file
7. Restart Docker
sudo service docker restart #重启
8. Container Management
Download the Docker image and it will take a few minutes to download.
Login container name is Ubuntu Docker container
sudo docker run-i-T Ubuntu/bin/bash
View the container IP
[Email protected]:/# ifconfig
Ubuntu 14.10 Installing Docker