Skip to main content

Command Palette

Search for a command to run...

Docker

Updated
•1 min read•View as Markdown
Docker

What is a Docker Container?

A container is a lightweight, isolated environment where your application runs.

What is Docker Compose?

Docker Compose is a tool for running multiple containers together using a single configuration file (docker-compose.yml or compose.yml).Docker.yml

What is Docker File?

A Dockerfile is a text file that contains a set of instructions for building a Docker image.

  • Starts with an existing base image.

  • Adds your application and its dependencies.

  • Configures how the application should run.

  • Produces a new custom image.

FROM eclipse-temurin:21-jdk

WORKDIR /app

COPY target/app.jar app.jar

CMD ["java", "-jar", "app.jar"]