Skip to content

Strategy contianer in container with contianerd #1090

Discussion options

You must be logged in to vote

Create a nerdctl container image

Dockerfile(Dockerfile.nerdctl)

FROM alpine

ARG NERDCTL_VERSION=0.20.0
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories

RUN apk upgrade \
    && apk update \
    && apk add --update wget curl \
	&& cd /usr/local/bin \
	&& wget -c https://github.com/containerd/nerdctl/releases/download/v${NERDCTL_VERSION}/nerdctl-${NERDCTL_VERSION}-linux-arm64.tar.gz -O - | tar -xz \
	&& cd -

Note: Update the registry quay.io/kameshsampath/nerdctl if required

Build the image using the command

nerdctl build --platform=linux/amd64,linux/arm64 -t quay.io/kameshsampath/nerdctl -f Dockerfile.nerdctl .

Push the image to the registry

nerdctl pus…

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kameshsampath
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by kameshsampath
Comment options

You must be logged in to vote
7 replies
@fahedouch
Comment options

@kameshsampath
Comment options

@kameshsampath
Comment options

@fahedouch
Comment options

@dongzhiwei-git
Comment options

Comment options

You must be logged in to vote
1 reply
@fahedouch
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants