feat: basic docker instance
This commit is contained in:
1 parent
0c69ca0f98
commit
a3a2ea832b
5 files changed
+157
-4
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Install ec2-instance-connect
|
||||
[ -f /opt/aws/bin/eic_run_authorized_keys ] || dnf install -y ec2-instance-connect
|
||||
|
||||
# Install Docker
|
||||
dnf install -y docker
|
||||
systemctl enable docker
|
||||
systemctl start docker
|
||||
usermod -a -G docker ec2-user
|
||||
|
||||
# Install docker-compose
|
||||
curl -SL https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
|
||||
chmod +x /usr/local/bin/docker-compose
|
||||
Reference in new issue
Block a user