Code Block | ||
---|---|---|
| ||
[ec2-user@ip-xxx-xxx-xxx-xxx ~]$ sudo yum update -y Loaded plugins: extras_suggestions, langpacks, priorities, update-motd amzn2-core | 3.7 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package chrony.x86_64 0:4.0-3.amzn2.0.2 will be updated ---> Package chrony.x86_64 0:4.2-5.amzn2.0.2 will be an update ---> Package dhclient.x86_64 12:4.2.5-77.amzn2.1.6 will be updated ---> Package dhclient.x86_64 12:4.2.5-79.amzn2.1.1 will be an update ---> Package dhcp-common.x86_64 12:4.2.5-77.amzn2.1.6 will be updated ---> Package dhcp-common.x86_64 12:4.2.5-79.amzn2.1.1 will be an update ---> Package dhcp-libs.x86_64 12:4.2.5-77.amzn2.1.6 will be updated ---> Package dhcp-libs.x86_64 12:4.2.5-79.amzn2.1.1 will be an update ---> Package gnupg2.x86_64 0:2.0.22-5.amzn2.0.4 will be updated ---> Package gnupg2.x86_64 0:2.0.22-5.amzn2.0.5 will be an update ---> Package kernel.x86_64 0:5.10.135-122.509.amzn2 will be installed ---> Package kernel-tools.x86_64 0:5.10.130-118.517.amzn2 will be updated ---> Package kernel-tools.x86_64 0:5.10.135-122.509.amzn2 will be an update --> Finished Dependency Resolution ~~~~~ 중략 ~~~~~~ Updated: chrony.x86_64 0:4.2-5.amzn2.0.2 dhclient.x86_64 12:4.2.5-79.amzn2.1.1 dhcp-common.x86_64 12:4.2.5-79.amzn2.1.1 dhcp-libs.x86_64 12:4.2.5-79.amzn2.1.1 gnupg2.x86_64 0:2.0.22-5.amzn2.0.5 kernel-tools.x86_64 0:5.10.135-122.509.amzn2 Complete! |
Code Block | ||
---|---|---|
| ||
[ec2-user@ip-xxx-xxx-xxx-xxx ~]$ sudo amazon-linux-extras install docker Installing docker Loaded plugins: extras_suggestions, langpacks, priorities, update-motd Cleaning repos: amzn2-core amzn2extra-docker amzn2extra-kernel-5.10 17 metadata files removed 6 sqlite files removed 0 metadata files removed Loaded plugins: extras_suggestions, langpacks, priorities, update-motd amzn2-core | 3.7 kB 00:00:00 amzn2extra-docker | 3.0 kB 00:00:00 amzn2extra-kernel-5.10 | 3.0 kB 00:00:00 (1/7): amzn2-core/2/x86_64/group_gz | 2.5 kB 00:00:00 (2/7): amzn2-core/2/x86_64/updateinfo | 495 kB 00:00:00 (3/7): amzn2extra-docker/2/x86_64/primary_db | 93 kB 00:00:00 (4/7): amzn2extra-docker/2/x86_64/updateinfo | 6.4 kB 00:00:00 (5/7): amzn2extra-kernel-5.10/2/x86_64/updateinfo | 18 kB 00:00:00 (6/7): amzn2extra-kernel-5.10/2/x86_64/primary_db | 11 MB 00:00:00 (7/7): amzn2-core/2/x86_64/primary_db | 65 MB 00:00:00 Resolving Dependencies ~~~~~~~~~ 중략 ~~~~~~~~ 50 selinux-ng available [ =stable ] 51 php8.0 available [ =stable ] 52 tomcat9 available [ =stable ] 53 unbound1.13 available [ =stable ] 54 mariadb10.5 available [ =stable ] 55 kernel-5.10=latest enabled [ =stable ] 56 redis6 available [ =stable ] 57 ruby3.0 available [ =stable ] 58 postgresql12 available [ =stable ] 59 postgresql13 available [ =stable ] 60 mock2 available [ =stable ] 61 dnsmasq2.85 available [ =stable ] 62 kernel-5.15 available [ =stable ] 63 postgresql14 available [ =stable ] 64 firefox available [ =stable ] 65 lustre available [ =stable ] |
Code Block | ||
---|---|---|
| ||
[ec2-user@ip-xxx-xxx-xxx-xxx ~]$ sudo service docker start Redirecting to /bin/systemctl start docker.service [ec2-user@ip-xxx-xxx-xxx-xxx ~]$ sudo usermod -a -G docker ec2-user [ec2-user@ip-xxx-xxx-xxx-xxx ~]$ sudo setfacl -m user:ec2-user:rw /var/run/docker.sock [ec2-user@ip-xxx-xxx-xxx-xxx ~]$ [ec2-user@ip-xxx-xxx-xxx-xxx ~]$ docker info Client: Context: default Debug Mode: false Server: Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 0 Server Version: 20.10.17 Storage Driver: overlay2 Backing Filesystem: xfs Supports d_type: true Native Overlay Diff: true userxattr: false Logging Driver: json-file Cgroup Driver: cgroupfs Cgroup Version: 1 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.runc.v2 io.containerd.runtime.v1.linux runc Default Runtime: runc Init Binary: docker-init containerd version: 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1 runc version: 1e7bb5b773162b57333d57f612fd72e3f8612d94 init version: de40ad0 Security Options: seccomp Profile: default Kernel Version: 5.10.130-118.517.amzn2.x86_64 Operating System: Amazon Linux 2 OSType: linux Architecture: x86_64 CPUs: 16 Total Memory: 30.57GiB Name: ip-172-16-193-106.ap-northeast-2.compute.internal ID: ZV5A:7MFV:I4DE:6SVV:WL5M:Z6GJ:YZ5H:B2I4:GK7H:MA5H:BIXM:OCWC 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 [ec2-user@ip-xxx-xxx-xxx-xxx ~]$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES |