How to install Apache in Linux container

[root@65d264fc1d7e /]# yum -y install httpd Loaded plugins: fastestmirror, ovl Setting up Install Process Loading mirror speeds from cached hostfile * base: * extras: * updates: Resolving Dependencies –> Running transaction check —> Package httpd.x86_64 0:2.2.15-69.el6.centos will be installed –> Processing Dependency: httpd-tools = 2.2.15-69.el6.centos for package: httpd-2.2.15-69.el6.centos.x86_64 –> Processing Dependency: apr-util-ldapContinue reading “How to install Apache in Linux container”

docker pull

How to download docker images and access the images In this case, I am pulling Centos6 Image from Docker and accessing it using docker run -it centos:6 /bin/bash and updating my image [cloud_user@aryan1c ~]$ docker pull centos:6 Trying to pull repository … 6: Pulling from ff50d722b382: Pull complete Digest: sha256:dec8f471302de43f4cfcf82f56d99a5227b5ea1aa6d02fa56344986e1f4610e7 Status: Downloaded newerContinue reading “docker pull”

Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?

Try: [cloud_user@aryan1c ~]$ sudo systemctl start docker [cloud_user@aryan1c ~]$ sudo systemctl enable docker [cloud_user@aryan1c ~]$ sudo systemctl start docker [cloud_user@aryan1c ~]$ sudo systemctl enable docker [cloud_user@aryan1c ~]$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES [cloud_user@aryan1c ~]$

Install Docker from the Default CentOS 7 Repository

After logging into the server, install the latest version of Docker using yum. $ sudo yum -y install docker Once installation completes, enable & start the service using systemd. Create a new group named docker, then add the cloud_user user to the group.   # groupadd docker # usermod -aG docker cloud_user # systemctl enable –now docker Created symlink from /etc/systemd/system/ toContinue reading “Install Docker from the Default CentOS 7 Repository”

How To Install Git on Ubuntu 18.04

Step 1 — Update Default Packages Logged into your Ubuntu 18.04 server as a sudo non-root user, first update your default packages. sudo apt update Step 2 — Install Git sudo apt install git Step 3 — Confirm Successful Installation You can confirm that you have installed Git correctly by running this command and receivingContinue reading “How To Install Git on Ubuntu 18.04”