How to Docker an Existing System

Asked 2 years ago, Updated 2 years ago, 54 views

I would like to make a Docker (image creation) for the web application that is already running. What should I do?
I still don't understand whether I should use a clean OS image to create the same configuration as the running web application, or if there is any command to make it into a Docker.
Please let me know if anyone knows.
Thank you for your cooperation.

linux docker

2022-09-29 21:50

1 Answers

The docker container should be written in Dockerfile, such as the commands required for the system. You can also create it with one liner.

First of all, when you create an existing web application, put the command in Dockerfile
Why don't you start by creating an equivalent environment by writing and building it?

The following is a reference for building Docker and creating containers.
Create a Docker image with the Dockerfile and docker build commands
Create a Docker Image from Dockerfile


2022-09-29 21:50

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.