CyberKeeda In Social Media
Showing posts with label Docker. Show all posts
Showing posts with label Docker. Show all posts

How to install latest version of docker-compose on Ubuntu 18.04



Docker Compose requirements:

  • Pre-installed docker engine.


One liner command to install docker compose.

$  sudo curl -L https://github.com/docker/compose/releases/download/1.24.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

    Verify the installation by checking installed docker compose version.

    $  docker-compose --version
       
      Do let me know your installed version in comments, mine is 

      docker-compose version 1.24.0, build 0aa59064

      Read more ...

      How to install and configure Docker-CE on CentOS



      Installation.

      • Begin with updating your system packages and docker dependencies.
      $  sudo yum update
      $  sudo yum install yum-utils device-mapper-persistent-data lvm2
      • Add docker stable repository for centos within your system
      $  sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
      • Once docker repository is enabled, proceed ahead to install Docker-CE ( Community Edition.
      $  sudo yum install docker-ce
      • Now docker-ce has been installed, lets start the docker daemon and enable it on boot.
      $  sudo systemctl start docker
      $  sudo systemctl enable docker
      • To verify the status of  docker, run the below command.
      $  sudo systemctl status docker











      • In case, if you want to check your installed docker version.
      $  sudo docker -v

      Run Docker commands without sudo

      By default managing Docker requires administrator privileges. If you want to run Docker commands as a non-root user without adding sudo within yoir command you need to add your user to the docker group which is created during the installation of the Docker CE package. Add your user to docker group by below command.

      $  sudo usermod -aG docker $USER

      Logout- Login to reflect the changes.
      Read more ...

      How to install and configure Docker-CE on Ubuntu



      Installation.

      • Begin with updating your system packages and remove other versions of docker and it's dependencies.
      $  sudo apt-get remove docker docker-engine docker.io containerd runc
      $  sudo apt-get update
      • Prepare system to download and install docker-ce from official repositories over https.
      $  sudo apt-get install \
          apt-transport-https \
          ca-certificates \
          curl \
          gnupg-agent \
          software-properties-common
      $  curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
      $  sudo apt-key fingerprint 0EBFCD88

      $  sudo add-apt-repository \
         "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
         $(lsb_release -cs) \
         stable"

      • Once docker repository is enabled, proceed ahead to install Docker-CE ( Community Edition.
      $  sudo apt-get update
      $  sudo apt-get install docker-ce docker-ce-cli containerd.io

      Now docker-ce has been installed, lets start the docker daemon and enable it on boot.
      $  sudo systemctl start docker
      $  sudo systemctl enable docker
      • To verify the status of  docker, run the below command.
      $  sudo systemctl status docker











        • In case, if you want to check your installed docker version.
        $  sudo docker -v

        Run Docker commands without sudo

        By default managing Docker requires administrator privileges. If you want to run Docker commands as a non-root user without adding sudo within yoir command you need to add your user to the docker group which is created during the installation of the Docker CE package. Add your user to docker group by below command.

        $  sudo usermod -aG docker $USER

        Logout- Login to reflect the changes.

        Read more ...
        Designed By Jackuna