-
Notifications
You must be signed in to change notification settings - Fork 1
[OLD] Docker Summary
Docker is a platform for building and running containerized applications, where a container packages your source code, dependencies, and runtime environment into a self-contained unit that can run anywhere a container runtime is available.
A Docker image is required to launch a container. This image defines the initial filesystem state and is built using a Dockerfile, which consists of sequential instructions in the form:
# comments
INSTRUCTION arguments
Common instructions include:
-
FROM: base image -
COPY: copy files into the container -
RUN: execute commands during image build
Two key instructions for container behavior are:
-
ENTRYPOINT: specifies the main command to run when the container starts -
CMD: provides default arguments for the entrypoint
We have dockerized our frontend app and published on DockerHub, here is the link. To experience Docker at first-hand, you can clone the image file and build a container to run our application, and witness how practical containerization is!
To pull the image
docker pull ardasaygan77/frontnedto run it in a container
docker run -p 5173:5173 frontendAfter this, our app can be found at http://localhost:5173