Please provide a source image with `from` prior to commit

Hello, i have problem with make a image from dockerfile

ARG IMAGE=arm64v8/ubuntu:xenial “I do not know what to write …”

FROM “I do not know what to write …”

MAINTAINER emil

Sending build context to Docker daemon 679.4 kB

Step 1/27 : ARG IMAGE=arm64v8/ubuntu:16.04

Please provide a source image with from prior to commit


Distributor ID: Ubuntu

Description: Ubuntu 16.04.5 LTS

Release: 16.04

Codename: xenial


Client:
Version: 17.03.2-ce
API version: 1.27
Go version: go1.6.2
Git commit: f5ec1e2
Built: Thu Jul 5 23:11:16 2018
OS/Arch: linux/arm64

Server:
Version: 17.03.2-ce
API version: 1.27 (minimum version 1.12)
Go version: go1.6.2
Git commit: f5ec1e2
Built: Thu Jul 5 23:11:16 2018
OS/Arch: linux/arm64
Experimental: false

Read these ( A Dockerfile must start with a FROM instruction .)

1 Like

I have a Dockerfile which starts the files with following lines

ARG REPO=alpine
ARG TAG=3.9
FROM ${REPO}:${TAG}

I ran that file in CentOS 7 (following is the OS details) and it ran successfully.

[root@localhost ~]# rpm -q centos-release
centos-release-7-5.1804.el7.centos.x86_64

[root@localhost ~]# cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)

But then I ran the same script in another CentOS (following is the details) where it gives the error mentioned in this thread.

[parallels@centos-7 Downloads]$ cat /etc/centos-release
CentOS Linux release 7.7.1908 (Core)

Any explanations ?

FROM debian:buster AS build
this code not work

Please provide a source image with from prior to commit