cp to /tmp (archiving doesn’t work well in the source folder, for some reason)
tar.gz the folder
scp it to docker server
untar the archive
import the rootfs folder as a docker image
provide a docker-compose.yml
create a container with that docker-compose
NOTE
The command: tail -f /dev/null is often used as a workaround to keep the container running indefinitely.
When you start a container without specifying a command, Docker will execute the default command defined in the Dockerfile. In some cases, this default command might not keep the container running, leading Docker to exit the container immediately after starting it. By specifying tail -f /dev/null as the command, you ensure that the container stays running indefinitely, allowing you to interact with it or attach to its shell.