You are on page 1of 17

Microsoft Windows [Version 10.0.19045.

2965]
(c) Microsoft Corporation. All rights reserved.

C:\Users\DELL>ssh -i Downloads\mum.pem ec2-user@13.235.82.46


The authenticity of host '13.235.82.46 (13.235.82.46)' can't be established.
ECDSA key fingerprint is SHA256:ouLRUwo6GJGNkQXJSUMBBj9RRYWoMFuAOG6DDykaRRk.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '13.235.82.46' (ECDSA) to the list of known hosts.
, #_
~\_ ####_ Amazon Linux 2023
~~ \_#####\
~~ \###|
~~ \#/ ___ https://aws.amazon.com/linux/amazon-linux-2023
~~ V~' '->
~~~ /
~~._. _/
_/ _/
_/m/'
Last login: Mon Jun 19 09:37:57 2023 from 117.99.161.160
[ec2-user@ip-172-31-6-176 ~]$ sudo -i
[root@ip-172-31-6-176 ~]# docker --version
-bash: docker: command not found
[root@ip-172-31-6-176 ~]# yum install docker -y
Last metadata expiration check: 0:00:37 ago on Wed Jun 21 09:57:46 2023.
Dependencies resolved.
===================================================================================
==========================================
Package Architecture Version
Repository Size
===================================================================================
==========================================
Installing:
docker x86_64 20.10.23-1.amzn2023.0.1
amazonlinux 42 M
Installing dependencies:
containerd x86_64 1.6.19-1.amzn2023.0.1
amazonlinux 31 M
iptables-libs x86_64 1.8.8-3.amzn2023.0.2
amazonlinux 401 k
iptables-nft x86_64 1.8.8-3.amzn2023.0.2
amazonlinux 183 k
libcgroup x86_64 3.0-1.amzn2023.0.1
amazonlinux 75 k
libnetfilter_conntrack x86_64 1.0.8-2.amzn2023.0.2
amazonlinux 58 k
libnfnetlink x86_64 1.0.1-19.amzn2023.0.2
amazonlinux 30 k
libnftnl x86_64 1.2.2-2.amzn2023.0.2
amazonlinux 84 k
pigz x86_64 2.5-1.amzn2023.0.3
amazonlinux 83 k
runc x86_64 1.1.5-1.amzn2023.0.1
amazonlinux 3.1 M

Transaction Summary
===================================================================================
==========================================
Install 10 Packages
Total download size: 77 M
Installed size: 300 M
Downloading Packages:
(1/10): pigz-2.5-1.amzn2023.0.3.x86_64.rpm
1.3 MB/s | 83 kB 00:00
(2/10): iptables-nft-1.8.8-3.amzn2023.0.2.x86_64.rpm
2.7 MB/s | 183 kB 00:00
(3/10): iptables-libs-1.8.8-3.amzn2023.0.2.x86_64.rpm
16 MB/s | 401 kB 00:00
(4/10): libcgroup-3.0-1.amzn2023.0.1.x86_64.rpm
776 kB/s | 75 kB 00:00
(5/10): libnftnl-1.2.2-2.amzn2023.0.2.x86_64.rpm
4.4 MB/s | 84 kB 00:00
(6/10): runc-1.1.5-1.amzn2023.0.1.x86_64.rpm
43 MB/s | 3.1 MB 00:00
(7/10): libnfnetlink-1.0.1-19.amzn2023.0.2.x86_64.rpm
1.8 MB/s | 30 kB 00:00
(8/10): libnetfilter_conntrack-1.0.8-2.amzn2023.0.2.x86_64.rpm
2.1 MB/s | 58 kB 00:00
(9/10): containerd-1.6.19-1.amzn2023.0.1.x86_64.rpm
56 MB/s | 31 MB 00:00
(10/10): docker-20.10.23-1.amzn2023.0.1.x86_64.rpm
50 MB/s | 42 MB 00:00
-----------------------------------------------------------------------------------
------------------------------------------
Total
76 MB/s | 77 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing :
1/1
Installing : runc-1.1.5-1.amzn2023.0.1.x86_64
1/10
Installing : containerd-1.6.19-1.amzn2023.0.1.x86_64
2/10
Running scriptlet: containerd-1.6.19-1.amzn2023.0.1.x86_64
2/10
Installing : libnfnetlink-1.0.1-19.amzn2023.0.2.x86_64
3/10
Installing : libnetfilter_conntrack-1.0.8-2.amzn2023.0.2.x86_64
4/10
Installing : iptables-libs-1.8.8-3.amzn2023.0.2.x86_64
5/10
Installing : libnftnl-1.2.2-2.amzn2023.0.2.x86_64
6/10
Installing : iptables-nft-1.8.8-3.amzn2023.0.2.x86_64
7/10
Running scriptlet: iptables-nft-1.8.8-3.amzn2023.0.2.x86_64
7/10
Installing : pigz-2.5-1.amzn2023.0.3.x86_64
8/10
Installing : libcgroup-3.0-1.amzn2023.0.1.x86_64
9/10
Running scriptlet: docker-20.10.23-1.amzn2023.0.1.x86_64
10/10
Installing : docker-20.10.23-1.amzn2023.0.1.x86_64
10/10
Running scriptlet: docker-20.10.23-1.amzn2023.0.1.x86_64
10/10
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket →
/usr/lib/systemd/system/docker.socket.

Verifying : libcgroup-3.0-1.amzn2023.0.1.x86_64
1/10
Verifying : pigz-2.5-1.amzn2023.0.3.x86_64
2/10
Verifying : iptables-nft-1.8.8-3.amzn2023.0.2.x86_64
3/10
Verifying : iptables-libs-1.8.8-3.amzn2023.0.2.x86_64
4/10
Verifying : containerd-1.6.19-1.amzn2023.0.1.x86_64
5/10
Verifying : runc-1.1.5-1.amzn2023.0.1.x86_64
6/10
Verifying : libnftnl-1.2.2-2.amzn2023.0.2.x86_64
7/10
Verifying : docker-20.10.23-1.amzn2023.0.1.x86_64
8/10
Verifying : libnfnetlink-1.0.1-19.amzn2023.0.2.x86_64
9/10
Verifying : libnetfilter_conntrack-1.0.8-2.amzn2023.0.2.x86_64
10/10

Installed:
containerd-1.6.19-1.amzn2023.0.1.x86_64 docker-20.10.23-
1.amzn2023.0.1.x86_64
iptables-libs-1.8.8-3.amzn2023.0.2.x86_64 iptables-nft-1.8.8-
3.amzn2023.0.2.x86_64
libcgroup-3.0-1.amzn2023.0.1.x86_64 libnetfilter_conntrack-
1.0.8-2.amzn2023.0.2.x86_64
libnfnetlink-1.0.1-19.amzn2023.0.2.x86_64 libnftnl-1.2.2-
2.amzn2023.0.2.x86_64
pigz-2.5-1.amzn2023.0.3.x86_64 runc-1.1.5-
1.amzn2023.0.1.x86_64

Complete!
[root@ip-172-31-6-176 ~]# systemctl enable --now docker
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service →
/usr/lib/systemd/system/docker.service.
[root@ip-172-31-6-176 ~]# docker --version
Docker version 20.10.23, build 7155243
[root@ip-172-31-6-176 ~]# man docker
[root@ip-172-31-6-176 ~]# info docker
[root@ip-172-31-6-176 ~]# docker info
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc., 0.0.0+unknown)

Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 20.10.23
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk
syslog
Swarm: inactive
Runtimes: io.containerd.runtime.v1.linux runc io.containerd.runc.v2
Default Runtime: runc
Init Binary: docker-init
containerd version: 1e1ea6e986c6c86565bc33d52e34b81b3e2bc71f
runc version: f19387a6bec4944c770f7668ab51c4348d9c2f38
init version: de40ad0
Security Options:
seccomp
Profile: default
cgroupns
Kernel Version: 6.1.29-50.88.amzn2023.x86_64
Operating System: Amazon Linux 2023
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 949.8MiB
Name: ip-172-31-6-176.ap-south-1.compute.internal
ID: QRAT:V3N3:RM7V:QL6O:ZRB2:FOED:OZWR:4TTO:BIC5:DAQH:QO5B:OVJF
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

[root@ip-172-31-6-176 ~]# whatis docker


docker (1) - Docker image and container command line interface
[root@ip-172-31-6-176 ~]# which docker
/usr/bin/docker
[root@ip-172-31-6-176 ~]# whereis docker
docker: /usr/bin/docker /etc/docker /usr/libexec/docker
/usr/share/man/man1/docker.1.gz
[root@ip-172-31-6-176 ~]# history
1 vi /etc/ssh/sshd_config
2 systemctl restart sshd
3 passwd ec2-user
4 exit
5 who
6 w
7 yum install httpd -y
8 systemctl status httpd
9 yum remove httpd -y
10 systemctl status httpd
11 yum install httpd -y
12 systemctl status httpd
13 systemctl start httpd
14 systemctl status httpd
15 who
16 w
17 systemctl status httpd
18 w
19 systemctl status httpd
20 exit
21 to install apache web server
22 whoami
23 systemctl status httpd
24 systemctl start httpd
25 systemctl status httpd
26 whoami
27 to install apache web-server
28 yum install httpd-y
29 systemctl status httpd
30 ls
31 mkdir
32 mkdir ravi
33 ls
34 rmdir
35 cd /var/www//html/
36 ls
37 vi ravishankar.html
38 ls
39 ecs wq -
40 vi jaya.html
41 yum install httpd -y
42 systemctl status httpd
43 cd /var/www/html
44 pwd
45 ls
46 whoami
47 systemctl status httpd
48 cd /var/www/html
49 pwd
50 ls
51 vi manikant.html
52 ls
53 whoami
54 cd/var/www/html
55 cd /var/www/html
56 pwd
57 vi akshat.html
58 yum install httpd -y
59 systemctl start httpd
60 vi/etc/ssh/sshd_config
61 whoami
62 cd/var/www/html
63 vi index.html
64 nano index.html
65 cd/var/www/html
66 nano jaya.html
67 cd /var/www/html
68 pwd
69 whoami
70 cd /var/www/html
71 pwd
72 vi rishi.html
73 cat rish.html
74 cd /var/www/html
75 pwd
76 vi rishi.html
77 who
78 w
79 cd /var/www/html/
80 ls
81 history
82 ls
83 pwd
84 vi ashish.html
85 cat ashish.html
86 w
87 ls
88 vi index.html
89 ls
90 cd
91 ls
92 cd /var/www/html/
93 ls
94 vi mittal.html
95 whoami
96 who
97 w
98 ls
99 vi file1.html
100 ls
101 cat ravishankar.html
102 ls
103 cat rishi.html
104 w
105 who
106 ls
107 cat akshat.html
108 ls
109 nano ashish.html
110 ls
111 docker --version
112 yum install docker -y
113 systemctl enable --now docker
114 docker --version
115 man docker
116 info docker
117 docker info
118 whatis docker
119 which docker
120 whereis docker
121 history
[root@ip-172-31-6-176 ~]# cd /var/lib/docker/
[root@ip-172-31-6-176 docker]# ls
buildkit containers image network overlay2 plugins runtimes swarm tmp
trust volumes
[root@ip-172-31-6-176 docker]# cd containers/
[root@ip-172-31-6-176 containers]# ls
[root@ip-172-31-6-176 containers]# cd ..
[root@ip-172-31-6-176 docker]# cd image/
[root@ip-172-31-6-176 image]# ls
overlay2
[root@ip-172-31-6-176 image]# cd overlay2/
[root@ip-172-31-6-176 overlay2]# ls
distribution imagedb layerdb repositories.json
[root@ip-172-31-6-176 overlay2]# cd
[root@ip-172-31-6-176 ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
[root@ip-172-31-6-176 ~]# docker search centos
NAME DESCRIPTION
STARS OFFICIAL AUTOMATED
centos DEPRECATED; The official build of
CentOS. 7599 [OK]
kasmweb/centos-7-desktop CentOS 7 desktop for Kasm Workspaces
38
couchbase/centos7-systemd centos7-systemd images with additional
debug… 8 [OK]
dokken/centos-stream-9
6
dokken/centos-7 CentOS 7 image for kitchen-dokken
5
eclipse/centos_jdk8 CentOS, JDK8, Maven 3, git, curl,
nmap, mc, … 5 [OK]
dokken/centos-stream-8
4
continuumio/centos5_gcc5_base
3
dokken/centos-8 CentOS 8 image for kitchen-dokken
3
adoptopenjdk/centos7_build_image
1
spack/centos7 CentOS 7 with Spack preinstalled
1
spack/centos6 CentOS 6 with Spack preinstalled
1
couchbase/centos-72-java-sdk
0
ustclug/centos Official CentOS Image with USTC Mirror
0
couchbase/centos-72-jenkins-core
0
couchbase/centos-70-sdk-build
0
couchbase/centos-69-sdk-build
0
atlas/centos7-atlasos ATLAS CentOS 7 Software Development OS
0
couchbase/centos-69-sdk-nodevtoolset-build
0
dokken/centos-6 EOL: CentOS 6 image for kitchen-dokken
0
datadog/centos-i386
0
corpusops/centos-bare https://github.com/corpusops/docker-
images/ 0
bitnami/centos-base-buildpack Centos base compilation image
0 [OK]
corpusops/centos centos corpusops baseimage
0
adoptopenjdk/centos6_build_image
0
[root@ip-172-31-6-176 ~]# docker search centos:7
NAME DESCRIPTION
STARS OFFICIAL AUTOMATED
benwang6/tedu-jdk oracle jdk 8u281 centos:7
JAVA_HOME=/usr/jdk… 9
legerete/nginx-php71 LA[->]P - Centos:7 + Nginx +
PHP 7.1 1 [OK]
bbania/centos Build image based on centos:7
1
mjstealey/mariadb-galera MariaDB Galera cluster in
Docker - based fro… 1 [OK]
vikingco/python Python Stack Docker Base Image:
Based on cen… 1
project31/aarch64-centos aarch64/arm64 version of
centos:7 https://hu… 0
images4dev/centos7 Based off the official
CentOS:7.8.2003 image… 0
xuwenfeng1225/centos7_jdk8 build in centos:7.6.1810 and
jdk1.8.0_211 0
qiyue/mycat centos:7 + jdk:1.8 + mycat
0
geomatikk/centos FROM centos:7 with maven 3.6.1
and openjdk-1… 0
acktsw/centos centos:7
0 [OK]
a2747/centos7 derivative images from centos:7
0
waffleimage/centos7 Centos:7 with systemd and ssh
running 0
alvintz/centos centos:7.2.1511
0 [OK]
europeanspallationsource/oracle-jdk-maven-jenkins ICS oracle-jdk + maven +
jenkins users image… 0
atomantic/centnode CentOS:7 base with nvm (node
stable+), pm2, … 0
europeanspallationsource/oracle-jdk-maven ICS oracle-jdk + maven image
based on centos… 0
macedigital/nodejs Latest NodeJS for CentOS:7
0 [OK]
how2j/centos7_tools centos:7.6.1810 + iproute ftp
bind-utils ne… 0
kalibek/gtypist gtypist on centos:7
0
weihoop/mysql 基于 weihoop/centos:7.4.1708 制作
0
europeanspallationsource/oracle-jdk ICS oracle-jdk image based on
centos:7 0
acktsw/java oracle jdk 8u171 , centos:7,
timeZone:+8, e… 0 [OK]
jinchub/nginx1.18 centos:7 nginx1.18.0 version
0
mesosphere/freeipa-server A freeIPA v4.3 container based
on centos:7. … 0
[root@ip-172-31-6-176 ~]# docker pull centos
Using default tag: latest
latest: Pulling from library/centos
a1d0c7532777: Pull complete
Digest: sha256:a27fd8080b517143cbbbab9dfb7c8571c40d67d534bbdee55bd6c473f432b177
Status: Downloaded newer image for centos:latest
docker.io/library/centos:latest
[root@ip-172-31-6-176 ~]# docker pull centos:7
7: Pulling from library/centos
2d473b07cdd5: Pull complete
Digest: sha256:be65f488b7764ad3638f236b7b515b3678369a5124c47b8d32916d6487418ea4
Status: Downloaded newer image for centos:7
docker.io/library/centos:7
[root@ip-172-31-6-176 ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
centos 7 eeb6ee3f44bd 21 months ago 204MB
centos latest 5d0da3dc9764 21 months ago 231MB
[root@ip-172-31-6-176 ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@ip-172-31-6-176 ~]# docker create centos
7cf66ed453ccfb8fd4298ea61e01cd1efc727f9f8ec8e7ed2625a168fedc9ab7
[root@ip-172-31-6-176 ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7cf66ed453cc centos "/bin/bash" 5 seconds ago Created
gallant_curran
[root@ip-172-31-6-176 ~]# docker create centos:7
81511efa1127ecc1dcd9d95aa72b5afca9287c22ce0d63c66b1d0e0b0f52b29e
[root@ip-172-31-6-176 ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
81511efa1127 centos:7 "/bin/bash" 1 second ago Created
zen_moser
7cf66ed453cc centos "/bin/bash" 2 minutes ago Created
gallant_curran
[root@ip-172-31-6-176 ~]# docker create ubuntu
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
6b851dcae6ca: Pull complete
Digest: sha256:6120be6a2b7ce665d0cbddc3ce6eae60fe94637c6a66985312d1f02f63cc0bcd
Status: Downloaded newer image for ubuntu:latest
1081eb88de1f6637f17a4519a72810eb6711b3825495749d33ca6f8c5dfb156a
[root@ip-172-31-6-176 ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest 99284ca6cea0 2 weeks ago 77.8MB
centos 7 eeb6ee3f44bd 21 months ago 204MB
centos latest 5d0da3dc9764 21 months ago 231MB
[root@ip-172-31-6-176 ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1081eb88de1f ubuntu "/bin/bash" 7 seconds ago Created
beautiful_kapitsa
81511efa1127 centos:7 "/bin/bash" 23 seconds ago Created
zen_moser
7cf66ed453cc centos "/bin/bash" 2 minutes ago Created
gallant_curran
[root@ip-172-31-6-176 ~]# history
1 vi /etc/ssh/sshd_config
2 systemctl restart sshd
3 passwd ec2-user
4 exit
5 who
6 w
7 yum install httpd -y
8 systemctl status httpd
9 yum remove httpd -y
10 systemctl status httpd
11 yum install httpd -y
12 systemctl status httpd
13 systemctl start httpd
14 systemctl status httpd
15 who
16 w
17 systemctl status httpd
18 w
19 systemctl status httpd
20 exit
21 to install apache web server
22 whoami
23 systemctl status httpd
24 systemctl start httpd
25 systemctl status httpd
26 whoami
27 to install apache web-server
28 yum install httpd-y
29 systemctl status httpd
30 ls
31 mkdir
32 mkdir ravi
33 ls
34 rmdir
35 cd /var/www//html/
36 ls
37 vi ravishankar.html
38 ls
39 ecs wq -
40 vi jaya.html
41 yum install httpd -y
42 systemctl status httpd
43 cd /var/www/html
44 pwd
45 ls
46 whoami
47 systemctl status httpd
48 cd /var/www/html
49 pwd
50 ls
51 vi manikant.html
52 ls
53 whoami
54 cd/var/www/html
55 cd /var/www/html
56 pwd
57 vi akshat.html
58 yum install httpd -y
59 systemctl start httpd
60 vi/etc/ssh/sshd_config
61 whoami
62 cd/var/www/html
63 vi index.html
64 nano index.html
65 cd/var/www/html
66 nano jaya.html
67 cd /var/www/html
68 pwd
69 whoami
70 cd /var/www/html
71 pwd
72 vi rishi.html
73 cat rish.html
74 cd /var/www/html
75 pwd
76 vi rishi.html
77 who
78 w
79 cd /var/www/html/
80 ls
81 history
82 ls
83 pwd
84 vi ashish.html
85 cat ashish.html
86 w
87 ls
88 vi index.html
89 ls
90 cd
91 ls
92 cd /var/www/html/
93 ls
94 vi mittal.html
95 whoami
96 who
97 w
98 ls
99 vi file1.html
100 ls
101 cat ravishankar.html
102 ls
103 cat rishi.html
104 w
105 who
106 ls
107 cat akshat.html
108 ls
109 nano ashish.html
110 ls
111 docker --version
112 yum install docker -y
113 systemctl enable --now docker
114 docker --version
115 man docker
116 info docker
117 docker info
118 whatis docker
119 which docker
120 whereis docker
121 history
122 cd /var/lib/docker/
123 ls
124 cd containers/
125 ls
126 cd ..
127 cd image/
128 ls
129 cd overlay2/
130 ls
131 cd
132 docker images
133 docker search centos
134 docker search centos:7
135 docker pull centos
136 docker pull centos:7
137 docker images
138 docker ps -a
139 docker create centos
140 docker ps -a
141 docker create centos:7
142 docker ps -a
143 docker create ubuntu
144 docker images
145 docker ps -a
146 history
[root@ip-172-31-6-176 ~]# exit
logout
[ec2-user@ip-172-31-6-176 ~]$ docker images
Got permission denied while trying to connect to the Docker daemon socket at
unix:///var/run/docker.sock: Get
"http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/json": dial unix
/var/run/docker.sock: connect: permission denied
[ec2-user@ip-172-31-6-176 ~]$ usermod -a -G docker ec2-user
usermod: Permission denied.
usermod: cannot lock /etc/passwd; try again later.
[ec2-user@ip-172-31-6-176 ~]$ sudo usermod -a -G docker ec2-user
[ec2-user@ip-172-31-6-176 ~]$ exit
logout
Connection to 13.235.82.46 closed.

C:\Users\DELL>ssh -i Downloads\mum.pem ec2-user@13.235.82.46


, #_
~\_ ####_ Amazon Linux 2023
~~ \_#####\
~~ \###|
~~ \#/ ___ https://aws.amazon.com/linux/amazon-linux-2023
~~ V~' '->
~~~ /
~~._. _/
_/ _/
_/m/'
Last login: Wed Jun 21 09:58:04 2023 from 117.99.161.160
[ec2-user@ip-172-31-6-176 ~]$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest 99284ca6cea0 2 weeks ago 77.8MB
centos 7 eeb6ee3f44bd 21 months ago 204MB
centos latest 5d0da3dc9764 21 months ago 231MB
[ec2-user@ip-172-31-6-176 ~]$ sudo -i
[root@ip-172-31-6-176 ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1081eb88de1f ubuntu "/bin/bash" 8 minutes ago Created
beautiful_kapitsa
81511efa1127 centos:7 "/bin/bash" 9 minutes ago Created
zen_moser
7cf66ed453cc centos "/bin/bash" 11 minutes ago Created
gallant_curran
[root@ip-172-31-6-176 ~]# docker start zen_moser
zen_moser
[root@ip-172-31-6-176 ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
1081eb88de1f ubuntu "/bin/bash" 9 minutes ago Created
beautiful_kapitsa
81511efa1127 centos:7 "/bin/bash" 9 minutes ago Exited (0) 2 seconds ago
zen_moser
7cf66ed453cc centos "/bin/bash" 12 minutes ago Created
gallant_curran
[root@ip-172-31-6-176 ~]# docker start beautiful_kapitsa
beautiful_kapitsa
[root@ip-172-31-6-176 ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
1081eb88de1f ubuntu "/bin/bash" 9 minutes ago Exited (0) 1 second ago
beautiful_kapitsa
81511efa1127 centos:7 "/bin/bash" 9 minutes ago Exited (0) 19 seconds ago
zen_moser
7cf66ed453cc centos "/bin/bash" 12 minutes ago Created
gallant_curran
[root@ip-172-31-6-176 ~]# docker start gallant_curran
gallant_curran
[root@ip-172-31-6-176 ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
1081eb88de1f ubuntu "/bin/bash" 9 minutes ago Exited (0) 19 seconds ago
beautiful_kapitsa
81511efa1127 centos:7 "/bin/bash" 10 minutes ago Exited (0) 37 seconds ago
zen_moser
7cf66ed453cc centos "/bin/bash" 12 minutes ago Exited (0) 1 second ago
gallant_curran
[root@ip-172-31-6-176 ~]# docker run fedora
Unable to find image 'fedora:latest' locally
latest: Pulling from library/fedora
49281dc4aaa4: Pull complete
Digest: sha256:a1347432284b0361f472ebc7c00874cf084e93bc2d9c78fe19f9840da9514789
Status: Downloaded newer image for fedora:latest
[root@ip-172-31-6-176 ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
eecf46eb4132 fedora "/bin/bash" 3 seconds ago Exited (0) 2 seconds ago
agitated_cannon
1081eb88de1f ubuntu "/bin/bash" 11 minutes ago Exited (0) About a minute
ago beautiful_kapitsa
81511efa1127 centos:7 "/bin/bash" 11 minutes ago Exited (0) 2 minutes ago
zen_moser
7cf66ed453cc centos "/bin/bash" 14 minutes ago Exited (0) About a minute
ago gallant_curran
[root@ip-172-31-6-176 ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
fedora latest 6126bb20b2b5 10 hours ago 190MB
ubuntu latest 99284ca6cea0 2 weeks ago 77.8MB
centos 7 eeb6ee3f44bd 21 months ago 204MB
centos latest 5d0da3dc9764 21 months ago 231MB
[root@ip-172-31-6-176 ~]# history
1 vi /etc/ssh/sshd_config
2 systemctl restart sshd
3 passwd ec2-user
4 exit
5 who
6 w
7 yum install httpd -y
8 systemctl status httpd
9 yum remove httpd -y
10 systemctl status httpd
11 yum install httpd -y
12 systemctl status httpd
13 systemctl start httpd
14 systemctl status httpd
15 who
16 w
17 systemctl status httpd
18 w
19 systemctl status httpd
20 exit
21 to install apache web server
22 whoami
23 systemctl status httpd
24 systemctl start httpd
25 systemctl status httpd
26 whoami
27 to install apache web-server
28 yum install httpd-y
29 systemctl status httpd
30 ls
31 mkdir
32 mkdir ravi
33 ls
34 rmdir
35 cd /var/www//html/
36 ls
37 vi ravishankar.html
38 ls
39 ecs wq -
40 vi jaya.html
41 yum install httpd -y
42 systemctl status httpd
43 cd /var/www/html
44 pwd
45 ls
46 whoami
47 systemctl status httpd
48 cd /var/www/html
49 pwd
50 ls
51 vi manikant.html
52 ls
53 whoami
54 cd/var/www/html
55 cd /var/www/html
56 pwd
57 vi akshat.html
58 yum install httpd -y
59 systemctl start httpd
60 vi/etc/ssh/sshd_config
61 whoami
62 cd/var/www/html
63 vi index.html
64 nano index.html
65 cd/var/www/html
66 nano jaya.html
67 cd /var/www/html
68 pwd
69 whoami
70 cd /var/www/html
71 pwd
72 vi rishi.html
73 cat rish.html
74 cd /var/www/html
75 pwd
76 vi rishi.html
77 who
78 w
79 cd /var/www/html/
80 ls
81 history
82 ls
83 pwd
84 vi ashish.html
85 cat ashish.html
86 w
87 ls
88 vi index.html
89 ls
90 cd
91 ls
92 cd /var/www/html/
93 ls
94 vi mittal.html
95 whoami
96 who
97 w
98 ls
99 vi file1.html
100 ls
101 cat ravishankar.html
102 ls
103 cat rishi.html
104 w
105 who
106 ls
107 cat akshat.html
108 ls
109 nano ashish.html
110 ls
111 docker --version
112 yum install docker -y
113 systemctl enable --now docker
114 docker --version
115 man docker
116 info docker
117 docker info
118 whatis docker
119 which docker
120 whereis docker
121 history
122 cd /var/lib/docker/
123 ls
124 cd containers/
125 ls
126 cd ..
127 cd image/
128 ls
129 cd overlay2/
130 ls
131 cd
132 docker images
133 docker search centos
134 docker search centos:7
135 docker pull centos
136 docker pull centos:7
137 docker images
138 docker ps -a
139 docker create centos
140 docker ps -a
141 docker create centos:7
142 docker ps -a
143 docker create ubuntu
144 docker images
145 docker ps -a
146 history
147 exit
148 docker ps -a
149 docker start zen_moser
150 docker ps -a
151 docker start beautiful_kapitsa
152 docker ps -a
153 docker start gallant_curran
154 docker ps -a
155 docker run fedora
156 docker ps -a
157 docker images
158 history
[root@ip-172-31-6-176 ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
eecf46eb4132 fedora "/bin/bash" 2 minutes ago Exited (0) 2 minutes ago
agitated_cannon
1081eb88de1f ubuntu "/bin/bash" 14 minutes ago Exited (0) 4 minutes ago
beautiful_kapitsa
81511efa1127 centos:7 "/bin/bash" 14 minutes ago Exited (0) 4 minutes ago
zen_moser
7cf66ed453cc centos "/bin/bash" 16 minutes ago Exited (0) 4 minutes ago
gallant_curran
[root@ip-172-31-6-176 ~]# docker run -it centos
[root@b6a8d0ae11f3 /]# exit
exit
[root@ip-172-31-6-176 ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
b6a8d0ae11f3 centos "/bin/bash" 6 minutes ago Exited (0) 4 seconds ago
hardcore_zhukovsky
eecf46eb4132 fedora "/bin/bash" 9 minutes ago Exited (0) 9 minutes ago
agitated_cannon
1081eb88de1f ubuntu "/bin/bash" 21 minutes ago Exited (0) 11 minutes ago
beautiful_kapitsa
81511efa1127 centos:7 "/bin/bash" 21 minutes ago Exited (0) 11 minutes ago
zen_moser
7cf66ed453cc centos "/bin/bash" 23 minutes ago Exited (0) 11 minutes ago
gallant_curran
[root@ip-172-31-6-176 ~]# exit
logout
[ec2-user@ip-172-31-6-176 ~]$ exit
logout
Connection to 13.235.82.46 closed.

C:\Users\DELL>

You might also like