Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
9 views4 pages

Create Aws Linux

The document provides a step-by-step guide for setting up Docker on an AWS Linux instance. It includes commands for updating the system, installing Docker, managing Docker containers, and performing various operations such as creating, logging into, and removing containers. Additionally, it covers installing packages and managing files within a Docker container.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views4 pages

Create Aws Linux

The document provides a step-by-step guide for setting up Docker on an AWS Linux instance. It includes commands for updating the system, installing Docker, managing Docker containers, and performing various operations such as creating, logging into, and removing containers. Additionally, it covers installing packages and managing files within a Docker container.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Create aws linux

yum update -y

yum install docker -y

systemctl enable docker

systemctl start docker

systemctl restart docker

systemctl status docker

docker –version

1. Any Images or not

Docker image
2. Running container

Docker ps

Docker ps -a

3. How to create container


4.

Docker run -I -d –name nginx-con1 -p 90:80 nginx

Docker images

Docker ps

Login container

Docker exec -I -t nginx-con1 /bin/bash

Cat /etc/os-release

Apt-get updte -y

Apt-get install vim -y

Apt-get install curl -y

Apt-get install mv

Apt-get install wget -y

Cd /usr/share/nginx/html

Ls

Vim index.html

Wget url

Apt-get install unzip -y

Unzip filename.ext

Mv * /usr/share/nginx/html/

Docker stop nginx-con1

Docker ps

Docker ps -a
Docker rm nginx-con1

Docker images

Docker pull ubuntu

Docker rmi code

Docker images

You might also like