Docker: Docker is an open-source project that
automates the deployment of applications inside software containers. Docker provides a way to run applications
securely isolated in a container, packaged with all its dependencies and
libraries.
App architecture is changing from monolithic code
bases with waterfall development methodologies to loosely coupled services that
are developed and deployed independently.
Installation of Docker on CentOs 7
Alternatively, you can use following steps
Login as non-sudo user
$ wget -qO- https://get.docker.com/ | sh
$ sudo usermod -aG docker $(whoami)
Log out and log in from your server to activate your new groups.
Set Docker to start automatically at boot time:
$ sudo systemctl enable docker.service
Finally, start the Docker service:
$ sudo systemctl start docker.service
Installation of docker-compose
Alternatively you can use following commands
Now that you have Docker installed, let’s go ahead and install Docker Compose. First, install python-pip as prerequisite:
$ sudo yum install epel-release
$ sudo yum install -y python-pip
Then you can install Docker Compose:
$ sudo pip install docker-compose
You will also need to upgrade your Python packages on CentOS 7 to get docker-compose to run successfully:
$ sudo yum upgrade python*
No comments:
Post a Comment