1 Answer
- Newest
- Most votes
- Most comments
0
Hello.
If the container image pushed to DockerHub was built on your local PC, you can pull the same container that was running on your local PC.
In other words, if the container contains app.py etc. and is pushed to DockerHub, you can use the same container whether it is Lightsail or EC2.
When you pull a Docker image into your Lightsail instance, the image contains everything needed to run your application, including your application code (app.py) and any dependencies and configurations specified when the image was built.
Therefore, if the configuration files necessary to run the application are already included when creating the image, there is no need to manually add app.py etc. to the instance.
Relevant content
- asked 10 months ago
- Accepted Answerasked 7 months ago
- Accepted Answerasked 5 months ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 6 months ago