I would like to run docker-compose start and docker-compose stop within a docker-container.
Equivalently one can simply try to run docker-compose --version successfully.
I've already managed to get docker --version run by simply add two lines (see below).
The container seems to use Ubuntu 18.04 LTS.
The docker-compose file looks as follows:
---
version: "2.1"
services:
  duplicati-2:
    image: ghcr.io/linuxserver/duplicati
    container_name: duplicati-2
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - CLI_ARGS= #optional
    volumes:
      - ./config:/config
      - /mnt/myBackups:/backups
      - /opt/docker:/source:ro
#---------------------------------------------------------------------
#---------- needed to run docker -------------------------------------
      - /var/run/docker.sock:/var/run/docker.sock
      - /usr/bin/docker:/usr/bin/docker
#---------------------------------------------------------------------
#------------what must stand down here to run docker-compose?---------
      - /usr/local/bin/docker-compose:/usr/local/bin/docker-compose
      - /usr/bin/python3:/usr/bin/python3
#---------------------------------------------------------------------
    ports:
      - 8300:8200
    restart: unless-stopped
I've already found the requirements to generally run docker-compose --version here:
https://docs.docker.com/compose/install/
I'm afraid of all needed dependencies and libs for python3 and so on.
I don't want to pollute my docker-container with all of those libraries from the host machine when stupidly mount the whole /lib/* and /usr/bin directories from host.
So my question is:
Which mounts do I have to add to my docker-compose file at minimal so that i can run docker-compose within the container?