Answer the question
In order to leave comments, you need to log in
How to work with a running Docker container?
The task is as follows:
1) run the project using Docker
2) then work with it
Everything is clear with the first part - I found the right container ( https://registry.hub.docker.com/u/audreyt/ethercalc/), pulled it up and launched on hosting (used Digitalocean).
Actually - what's next? How to work with the project now? All source files, as I understand it, are inside this docker and are not available to me. I have a feeling I misunderstood the very concept of docker. Until that moment, I considered it to be something like a virtual machine. Is it possible to work with it at all (I mean to edit the code), or is it only for launching a project?
Answer the question
In order to leave comments, you need to log in
this is LXC, it is needed to isolate the environment that the application needs to work. That is, this is such a quick way to deploy an application without worrying about dependencies.
Of course, you can get inside, but it’s easier to do this:
https://github.com/audreyt/ethercalc
there is a Dockerfile on which the container is built and promoted.
In general, the docker feature is that it is essentially a container versioning mechanism. That is, we take one snapshot, change it and save it. Like git for the environment.
You can get in via ssh and you can mount directories.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question