Skip to content

3. Building a Docker Image

Rutvik Kevadiya edited this page Jul 26, 2022 · 2 revisions

Building a Docker image

  • Docker works by making use of something called containers and images. To know more about this, refer this page.
  • If git is not installed in your system, run this command to install it:
sudo apt-get install git
  • This repository contains a dockerfile named melodic_dockerfile.Dockerfile in the docker directory. Run the following command to download the repository to your system:
git clone https://github.com/saahu27/UR3Manipulator.git
  • Navigate to docker folder which is inside UR3Manipulator folder. Use cd to navigate inside the docker folder:
cd UR3Manipulator/docker/
  • To build an image from the given dockerfile, run this command:
DOCKER_BUILDKIT=1 docker build -t ur3e_image -f melodic_dockerfile.Dockerfile .
Name, Shorthand Description
DOCKER_BUILDKIT=1 Improvement in performance, storage management, feature functionality, and security
--tag, -t Name and optionally a tag in the 'name:tag' format
--file, -f Name of the Dockerfile (Default is 'PATH/Dockerfile')
. PATH is the current directory