How to install Docker on your RHEL system
1. Go to https://get.docker.com and copy the script and save on your system or use curl to download.
# curl -fsSL https://get.docker.com -o get-docker.sh
2. Run the script. This script will start the installation process of docker.
# sh get-docker.sh
3. Run docker commands
# docker version
# docker ps
4. Start the docker service/daemon
# systemctl start docker
# systemctl enable docker
5. Set up docket account so that you can download docker images from hub.docker.com
Note: You have to create account at hub.docker.com before you set up the configuration
# docker login
6. Download the docker image from docker hub.
# docker pull httpd
1. Go to https://get.docker.com and copy the script and save on your system or use curl to download.
# curl -fsSL https://get.docker.com -o get-docker.sh
2. Run the script. This script will start the installation process of docker.
# sh get-docker.sh
3. Run docker commands
# docker version
# docker ps
4. Start the docker service/daemon
# systemctl start docker
# systemctl enable docker
5. Set up docket account so that you can download docker images from hub.docker.com
Note: You have to create account at hub.docker.com before you set up the configuration
# docker login
6. Download the docker image from docker hub.
# docker pull httpd
No comments:
Post a Comment