hello docker

    0

    0

    Vinod Pahuja

    Swiss Army Knife
    • CentOS or RHEL: cd /usr/bin && sudo yum update -y && sudo yum install docker
    • Ubuntu: sudo apt-get update && sudo apt-get install docker
    • Amazon Linux: sudo yum update -y && sudo yum install docker
    • CentOS or RHEL: sudo groupadd docker && sudo usermod -a -G docker <ec2-user>
    • Ubuntu: sudo groupadd docker && sudo usermod -a -G docker <username>
    • Amazon Linux: sudo systemctl enable docker.service && sudo systemctl start docker.
    - centos / rhel
    
      sudo yum update -y
      sudo yum install docker
    
    - amzn
    
      sudo yum update -y
      sudo amazon-linux-extras install docker
    
    - ubuntu
    
      sudo apt-get update
      sudo apt-get update --allow-unauthenticated --allow-insecure-repositories
      
      sudo apt install docker
    
    -- ref : https://docs.docker.com/engine/install/linux-postinstall/
    
      sudo groupadd docker
      sudo usermod -a -G docker <ec2-user>
      -- sudo systemctl enable docker.service
      sudo systemctl start docker.service
      sudo service docker start
    
    - 	sudo docker run hello-world
      
    - 	Dockerfile
    
      docker build -t demo .
      docker run --rm -it demo
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.