Docker Architecture Details :-
Client
(User) run command :-
- Docker Build à “docker image build -t
myubuntu:1 . “ for image created on DOCKER_HOST.
- Docker Pull à “docker pull
ubuntu:18.04” for get ubuntu-18 image from docker Registry (docker public
repo) on Docker Host/ docker machine.
- Docker run à “docker run -itd ubuntu:18.04” for run ubuntu image on docker machine.
Installing
Docker :-
For RHEL/CentOS 6 32-64
Bit
#wget
http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm#
#rpm
-ivh epel-release-6-8.noarch.rpm
For RHEL/CentOS 6 64-Bit
#wget
http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
#rpm
-ivh epel-release-6-8.noarch.rpm
For
CentOS/RHEL 7
# yum install docker
# yum install
device-mapper-event-libs
For
RHEL 6
# yum install docker-io
# yum install
device-mapper-event-libs
For RHEL/CentOS 7
#
systemctl start docker.service
#
systemctl status docker.service
#
systemctl enable docker.service
For RHEL/CentOS
6
#
service docker start
#
service docker status
#
chkconfig docker on
Verify
Installation :-
#
docker --version
Docker version 19.03.6-ce, build 369ce74
Install
bash-completion for auto docker commands :-
# yum
-y install bash-completion
# curl
https://raw.githubusercontent.com/docker/docker-ce/master/components/cli/contrib/completion/bash/docker
-o /etc/bash_completion.d/docker.sh
No comments:
Post a Comment