File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 2121 image :
2222 architecture : amd64
2323 imageId : ami-0da424eb883458071
24+ preInstall :
25+ - name : " Add Docker repository and key"
26+ run : |
27+ # Create the directory for apt keyrings with appropriate permissions
28+ sudo install -m 0755 -d /etc/apt/keyrings
29+
30+ # Download the Docker GPG key and store it
31+ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
32+
33+ # Set the GPG key file to be readable by all users
34+ sudo chmod a+r /etc/apt/keyrings/docker.gpg
35+
36+ # Add the Docker repository with the appropriate architecture and signed keyring
37+ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
38+
39+ # Update the package index
40+ sudo apt-get update
2441 # containerRuntime:
2542 # install: true
2643 # name: containerd
2946 installer : kubeadm
3047 version : v1.30.0
3148 crictlVersion : v1.30.0
49+ containerRuntimeInstall : true
You can’t perform that action at this time.
0 commit comments