Base on CentOS 7, Docker 1.12.6
Some pre-requirment to install Docker to a Linux OS.
- Docker only can be installed on a 64 bit OS.
- Kernel version over 3.10 is recommended. recommend
- Need to enable cgroup and namespace.
Now it is easier to install Docker in CentOS or Fedora, it can be searched by
yum command like below:
# yum search docker | grep ^docker
yum -y install docker to install docker to your system.
# yum -y install docker
After the installation, start docker service and run
docker version to confirm your setup.
# systemctl start docker
Here will introduce some basic command to use docker, for more detail please refer (Docker Documentation)[https://docs.docker.com/engine/reference/commandline/docker/].
Docker command will help you to communicate with docker daemon. The docker
daemon will listen and execute docker command. run
docker --help to
get the command list.
# docker --help
Running docker command needs root permission.