G
G
gomer17262019-02-05 12:57:17
Docker
gomer1726, 2019-02-05 12:57:17

How to upload a Docker container to a production server?

I'm learning docker, I don't know much yet
Now I've learned how to deploy the server locally (docker compose)
After I finish the project locally, how can I upload all this to the server? in the same place, not only the source code of the application, but let's say python, mariadb, etc.
PS: and what OS docker uses by default? that is, if I'm not mistaken, I only download images of mysql, python, etc., but do not specify which OS, or did I not understand something? Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Draek Nelson, 2019-02-05
@daren93

In general, if you do not change anything in the dockers created using compose, then you simply transfer the entire compose.yml with dependencies to the server and just pay it there.
And by default, the docker, for the container, takes the one that was laid by the creator of the container. You can see it in the source code, and it doesn't really matter. As a rule, containers are delivered as a final product, and if you didn’t find a thin one for you, you write your own, on the OS you want and with what you want inside.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question