V
V
VoRoN19992022-02-28 13:46:59
Docker
VoRoN1999, 2022-02-28 13:46:59

Is Docker suitable for the following tasks?

Hello. Please let me know what to choose for my needs. Docker, virtual machine or whatever.

What I need:

1) The ability to connect via ssh, ftp from any PC in the same local area network.
2) Ability to make a copy of the current state and deploy on another PC with all database files, etc. (Not in the current local network)
3) Ability to work with nginx, apache, npm, php, python, mysql (if you choose docker, then all this is in one container)
4) Quick update to the latest versions of the above modules. (Like docker. I specified the version in the config and built the container on a new one)
5) Working with ubuntu users. Each user will have their own folder and their own data for connecting via ssh / ftp, where they will work with the modules specified in paragraph 3.
6) Web resources of users will have to be displayed in the browser on any PC in the local network.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vasily Bannikov, 2022-02-28
@VoRoN1999

https://www.docker.com/blog/containers-are-not-vms/
Docker is designed to deploy applications, not provide access to virtual machines.

1) The ability to connect via ssh, ftp from any PC in the same local area network.

Just any hypervisor. Though hyper-v, even vmware
2) Ability to make a copy of the current state and deploy on another PC with all database files, etc. (Not on current LAN)

As in p1. With docker, this will be difficult to organize.
3) Ability to work with nginx, apache, npm, php, python, mysql (this is if you choose docker, so that all this is in one container)

Pushing everything into one docker container is quite a serious dance with shell scripts.
And on a virtual machine it's elementary.
4) Quick update to the latest versions of the above modules. (Like docker. I specified the version in the config and built the container on a new one)

sudo apt update && sudo apt upgrade
In general, you need either a normal virtual machine, or a change in the approach that you will use.
For example, k8s should be suitable for your tasks, but then you will have to change the approach, because there will be no connection via ssh and sharing one "machine" between several users.

D
Drno, 2022-02-28
@Drno

You need a virtual machine. Or lxc container

M
Michael, 2022-02-28
@Akela_wolf

Your choice is virtual. For specific implementations, look at Vagrant (a wrapper over VirtualBox). In particular, he knows how to rebuild a virtual machine with new versions of software.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question