imagebuilder command not found

In this troubleshooting guide we learn how to fix imagebuilder command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

imagebuilder: command not found

or when using sudo you get the following error message

sudo: imagebuilder: command not found

Solutions to imagebuilder: command not found

How To Fix imagebuilder: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu imagebuilder is provided by openshift-imagebuilder package.

openshift-imagebuilder is:

This package supports using the Dockerfile syntax to build OCI & Docker compatible images, without invoking a container build command such as buildah bud or docker build. It is intended to give clients more control over how they build container images, including:

  • Instead of building one layer per line, run all instructions in the same container
  • Set HostConfig settings like network and memory controls that are not available when running container builds
  • Mount external files into the build that are not persisted as part of the final image (i.e. “secrets”)
  • If there are no RUN commands in the Dockerfile, the container is created and committed, but never started. The final image should be 99.9% compatible with regular container builds, but bugs are always possible.

This package provides the imagebuilder command-line utility.

To fix this problem, we can install more using the command below.

sudo apt-get -y install openshift-imagebuilder

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install openshift-imagebuilder.

sudo apt -y install openshift-imagebuilder

Or if you have aptitude installed you can use the following command.

sudo aptitude install openshift-imagebuilder

Summary

In this tutorial we learn how to fix imagebuilder command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.