-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (19 loc) · 1.05 KB
/
Dockerfile
File metadata and controls
22 lines (19 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ssst0n3/docker_archive:ctr_ubuntu-18.04_v0.1.0
# Add Docker's official GPG key; Add the repository to Apt sources:
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates curl && \
install -m 0755 -d /etc/apt/keyrings && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc && \
chmod a+r /etc/apt/keyrings/docker.asc && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
# install docker-ce
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
docker-ce=5:23.0.6-1~ubuntu.18.04~bionic \
docker-ce-cli=5:23.0.6-1~ubuntu.18.04~bionic \
containerd.io=1.6.21-1 \
docker-buildx-plugin=0.10.4-1~ubuntu.18.04~bionic \
docker-compose-plugin=2.17.3-1~ubuntu.18.04~bionic
RUN echo '{"storage-driver": "aufs"}' > /etc/docker/daemon.json