-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathnerdctl
43 lines (31 loc) · 1.31 KB
/
nerdctl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# Purpose: Docker alternative
# AmazonLinux
# ubuntu
# https://github.com/containerd/nerdctl/releases
curl -LO -# https://github.com/containerd/nerdctl/releases/download/v0.13.0/nerdctl-full-0.13.0-linux-amd64.tar.gz
##############
# Amazonlinux
##############
tar Cxzvvf /usr/ nerdctl-full-0.13.0-linux-amd64.tar.gz
#########
# Ubuntu
#########
tar Cxzvvf /usr/local nerdctl-full-0.13.0-linux-amd64.tar.gz
systemctl enable --now containerd
#################################
# Docker Compose V2 Installation
#################################
#########################################################################################
# 1 Run the following command to download the current stable release of Docker Compose
#########################################################################################
mkdir -p ~/.docker/cli-plugins/
curl -SL https://github.com/docker/compose/releases/download/v2.0.1/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose
###############################################
# 2 Apply executable permissions to the binary
###############################################
chmod +x ~/.docker/cli-plugins/docker-compose
###############################################
# 3 nerdctl compose
###############################################
nerdctl compose up -d --build