Docker Steps
Docker Steps
ap-
south-1.compute.amazonaws.com
C:\Users\RA20057382>ls
'3D Objects'
AppData
'Application Data'
Contacts
Cookies
Desktop
Documents
Downloads
Favorites
IntelGraphicsProfiles
Links
'Local Settings'
MicrosoftEdgeBackups
Music
'My Documents'
NTUSER.DAT
NTUSER.DAT{47a6a17a-a514-11e7-a94e-ec0d9a05c860}.TM.blf
NTUSER.DAT{47a6a17a-a514-11e7-a94e-
ec0d9a05c860}.TMContainer00000000000000000001.regtrans-ms
NTUSER.DAT{47a6a17a-a514-11e7-a94e-
ec0d9a05c860}.TMContainer00000000000000000002.regtrans-ms
NetHood
OneDrive
Pictures
PrintHood
Recent
'Saved Games'
Searches
SendTo
SolutionsTemp
'Start Menu'
Templates
Videos
'mcafee dlp quarantined files'
ntuser.dat.LOG1
ntuser.dat.LOG2
ntuser.ini
ntuser.pol
C:\Users\RA20057382>cd Downloads
__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-2/
5 package(s) needed for security, out of 7 available
Run "sudo yum update" to apply all updates.
[ec2-user@ip-172-31-3-249 ~]$ sudo su -
Last login: Tue Jun 11 14:18:23 UTC 2019 on pts/0
[root@ip-172-31-3-249 ~]# yum install docker
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 0:18.06.1ce-8.amzn2 will be installed
--> Processing Dependency: pigz for package: docker-18.06.1ce-8.amzn2.x86_64
--> Processing Dependency: libcgroup for package: docker-18.06.1ce-8.amzn2.x86_64
--> Processing Dependency: libltdl.so.7()(64bit) for package: docker-18.06.1ce-
8.amzn2.x86_64
--> Running transaction check
---> Package libcgroup.x86_64 0:0.41-15.amzn2 will be installed
---> Package libtool-ltdl.x86_64 0:2.4.2-22.2.amzn2.0.2 will be installed
---> Package pigz.x86_64 0:2.3.4-1.amzn2.0.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================
=====================================
Package Arch Version
Repository Size
===================================================================================
=====================================
Installing:
docker x86_64 18.06.1ce-8.amzn2
amzn2extra-docker 37 M
Installing for dependencies:
libcgroup x86_64 0.41-15.amzn2
amzn2-core 65 k
libtool-ltdl x86_64 2.4.2-22.2.amzn2.0.2
amzn2-core 49 k
pigz x86_64 2.3.4-1.amzn2.0.1
amzn2-core 81 k
Transaction Summary
===================================================================================
=====================================
Install 1 Package (+3 Dependent packages)
Installed:
docker.x86_64 0:18.06.1ce-8.amzn2
Dependency Installed:
libcgroup.x86_64 0:0.41-15.amzn2 libtool-ltdl.x86_64 0:2.4.2-22.2.amzn2.0.2
pigz.x86_64 0:2.3.4-1.amzn2.0.1
Complete!
[root@ip-172-31-3-249 ~]#
C:\Users\RA20057382>ls
'3D Objects'
AppData
'Application Data'
Contacts
Cookies
Desktop
Documents
Downloads
Favorites
IntelGraphicsProfiles
Links
'Local Settings'
MicrosoftEdgeBackups
Music
'My Documents'
NTUSER.DAT
NTUSER.DAT{47a6a17a-a514-11e7-a94e-ec0d9a05c860}.TM.blf
NTUSER.DAT{47a6a17a-a514-11e7-a94e-
ec0d9a05c860}.TMContainer00000000000000000001.regtrans-ms
NTUSER.DAT{47a6a17a-a514-11e7-a94e-
ec0d9a05c860}.TMContainer00000000000000000002.regtrans-ms
NetHood
OneDrive
Pictures
PrintHood
Recent
'Saved Games'
Searches
SendTo
SolutionsTemp
'Start Menu'
Templates
Videos
'mcafee dlp quarantined files'
ntuser.dat.LOG1
ntuser.dat.LOG2
ntuser.ini
ntuser.pol
C:\Users\RA20057382>cd Downloads
__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-2/
5 package(s) needed for security, out of 7 available
Run "sudo yum update" to apply all updates.
[ec2-user@ip-172-31-3-249 ~]$ sudo su -
Last login: Tue Jun 11 14:18:23 UTC 2019 on pts/0
[root@ip-172-31-3-249 ~]# yum install docker
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 0:18.06.1ce-8.amzn2 will be installed
--> Processing Dependency: pigz for package: docker-18.06.1ce-8.amzn2.x86_64
--> Processing Dependency: libcgroup for package: docker-18.06.1ce-8.amzn2.x86_64
--> Processing Dependency: libltdl.so.7()(64bit) for package: docker-18.06.1ce-
8.amzn2.x86_64
--> Running transaction check
---> Package libcgroup.x86_64 0:0.41-15.amzn2 will be installed
---> Package libtool-ltdl.x86_64 0:2.4.2-22.2.amzn2.0.2 will be installed
---> Package pigz.x86_64 0:2.3.4-1.amzn2.0.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================
=====================================
Package Arch Version
Repository Size
===================================================================================
=====================================
Installing:
docker x86_64 18.06.1ce-8.amzn2
amzn2extra-docker 37 M
Installing for dependencies:
libcgroup x86_64 0.41-15.amzn2
amzn2-core 65 k
libtool-ltdl x86_64 2.4.2-22.2.amzn2.0.2
amzn2-core 49 k
pigz x86_64 2.3.4-1.amzn2.0.1
amzn2-core 81 k
Transaction Summary
===================================================================================
=====================================
Install 1 Package (+3 Dependent packages)
Dependency Installed:
libcgroup.x86_64 0:0.41-15.amzn2 libtool-ltdl.x86_64 0:2.4.2-22.2.amzn2.0.2
pigz.x86_64 0:2.3.4-1.amzn2.0.1
Complete!
[root@ip-172-31-3-249 ~]# systemctl status docker
? docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset:
disabled)
Active: inactive (dead)
Docs: https://docs.docker.com
[root@ip-172-31-3-249 ~]# systemctl start docker
[root@ip-172-31-3-249 ~]# systemctl status docker
? docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset:
disabled)
Active: active (running) since Thu 2019-06-13 02:58:30 UTC; 9s ago
Docs: https://docs.docker.com
Process: 3430 ExecStartPre=/usr/libexec/docker/docker-setup-runtimes.sh
(code=exited, status=0/SUCCESS)
Process: 3394 ExecStartPre=/bin/mkdir -p /run/docker (code=exited,
status=0/SUCCESS)
Main PID: 3442 (dockerd)
Tasks: 18
Memory: 36.7M
CGroup: /system.slice/docker.service
+-3442 /usr/bin/dockerd --default-ulimit nofile=1024:4096
+-3452 docker-containerd --config
/var/run/docker/containerd/containerd.toml
[root@ip-172-31-3-249 ~]#
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
[root@ip-172-31-3-249 ~]#
root@ip-172-31-3-249 ~]# docker image ls
REPOSITORY TAG IMAGE ID CREATED
SIZE
hello-world latest fce289e99eb9 5 months ago
1.84kB
[root@ip-172-31-3-249 ~]# docker container ls --all
CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS NAMES
a9e7c385a929 hello-world "/hello" 4 minutes ago
Exited (0) 4 minutes ago optimistic_yonath
[root@ip-172-31-3-249 ~]
C:\Users\RA20057382>ls
'3D Objects'
AppData
'Application Data'
Contacts
Cookies
Desktop
Documents
Downloads
Favorites
IntelGraphicsProfiles
Links
'Local Settings'
MicrosoftEdgeBackups
Music
'My Documents'
NTUSER.DAT
NTUSER.DAT{47a6a17a-a514-11e7-a94e-ec0d9a05c860}.TM.blf
NTUSER.DAT{47a6a17a-a514-11e7-a94e-
ec0d9a05c860}.TMContainer00000000000000000001.regtrans-ms
NTUSER.DAT{47a6a17a-a514-11e7-a94e-
ec0d9a05c860}.TMContainer00000000000000000002.regtrans-ms
NetHood
OneDrive
Pictures
PrintHood
Recent
'Saved Games'
Searches
SendTo
SolutionsTemp
'Start Menu'
Templates
Videos
'mcafee dlp quarantined files'
ntuser.dat.LOG1
ntuser.dat.LOG2
ntuser.ini
ntuser.pol
C:\Users\RA20057382>cd Downloads
__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-2/
5 package(s) needed for security, out of 7 available
Run "sudo yum update" to apply all updates.
[ec2-user@ip-172-31-3-249 ~]$ sudo su -
Last login: Tue Jun 11 14:18:23 UTC 2019 on pts/0
[root@ip-172-31-3-249 ~]# yum install docker
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 0:18.06.1ce-8.amzn2 will be installed
--> Processing Dependency: pigz for package: docker-18.06.1ce-8.amzn2.x86_64
--> Processing Dependency: libcgroup for package: docker-18.06.1ce-8.amzn2.x86_64
--> Processing Dependency: libltdl.so.7()(64bit) for package: docker-18.06.1ce-
8.amzn2.x86_64
--> Running transaction check
---> Package libcgroup.x86_64 0:0.41-15.amzn2 will be installed
---> Package libtool-ltdl.x86_64 0:2.4.2-22.2.amzn2.0.2 will be installed
---> Package pigz.x86_64 0:2.3.4-1.amzn2.0.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================
=====================================
Package Arch Version
Repository Size
===================================================================================
=====================================
Installing:
docker x86_64 18.06.1ce-8.amzn2
amzn2extra-docker 37 M
Installing for dependencies:
libcgroup x86_64 0.41-15.amzn2
amzn2-core 65 k
libtool-ltdl x86_64 2.4.2-22.2.amzn2.0.2
amzn2-core 49 k
pigz x86_64 2.3.4-1.amzn2.0.1
amzn2-core 81 k
Transaction Summary
===================================================================================
=====================================
Install 1 Package (+3 Dependent packages)
Installed:
docker.x86_64 0:18.06.1ce-8.amzn2
Dependency Installed:
libcgroup.x86_64 0:0.41-15.amzn2 libtool-ltdl.x86_64 0:2.4.2-22.2.amzn2.0.2
pigz.x86_64 0:2.3.4-1.amzn2.0.1
Complete!
[root@ip-172-31-3-249 ~]# systemctl status docker
? docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset:
disabled)
Active: inactive (dead)
Docs: https://docs.docker.com
[root@ip-172-31-3-249 ~]# systemctl start docker
[root@ip-172-31-3-249 ~]# systemctl status docker
? docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset:
disabled)
Active: active (running) since Thu 2019-06-13 02:58:30 UTC; 9s ago
Docs: https://docs.docker.com
Process: 3430 ExecStartPre=/usr/libexec/docker/docker-setup-runtimes.sh
(code=exited, status=0/SUCCESS)
Process: 3394 ExecStartPre=/bin/mkdir -p /run/docker (code=exited,
status=0/SUCCESS)
Main PID: 3442 (dockerd)
Tasks: 18
Memory: 36.7M
CGroup: /system.slice/docker.service
+-3442 /usr/bin/dockerd --default-ulimit nofile=1024:4096
+-3452 docker-containerd --config
/var/run/docker/containerd/containerd.toml
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/