Z
Z
zasqer2014-10-09 22:32:22
Software Deployment
zasqer, 2014-10-09 22:32:22

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

2 answer(s)
S
Sergey, 2014-10-09
@zasqer

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.

K
Kroid, 2014-11-23
@Kroid

You can get into the container running the daemon:
docker exec -it container_name /bin/bash
This will start the bash process inside the container and connect to it. Exit the container using the exit command.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question