im using pop_os 22.04.
DISTRIB_ID=Pop
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Pop!_OS 22.04 LTS"
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.5 LTS"
NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os
NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os
NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os
issue im encountering is whenever i try to bring up a docker-compose.yaml file that contains multiple vms containers runs on foreground even though i use -d flag. i think its not even foreground, because i lost my control over my laptop and i get a full screen terminal and all the containers ask for login credentials like crazy.
here is my yaml file:
services:
ubuntu-c:
hostname: ubuntu-c
container_name: ubuntu-c
image: spurin/diveintoansible:ansible
ports:
- ${UBUNTUC_PORT_SSHD}:22
- ${UBUNTUC_PORT_TTYD}:7681
privileged: true
volumes:
- ${CONFIG}:/config
- ${ANSIBLE_HOME}/shared:/shared
- ${ANSIBLE_HOME}/ubuntu-c/ansible:/home/ansible
- ${ANSIBLE_HOME}/ubuntu-c/root:/root
networks:
- diveinto.io
ubuntu1:
hostname: ubuntu1
container_name: ubuntu1
image: spurin/diveintoansible:ubuntu
ports:
- ${UBUNTU1_PORT_SSHD}:22
- ${UBUNTU1_PORT_TTYD}:7681
privileged: true
volumes:
- ${CONFIG}:/config
- ${ANSIBLE_HOME}/shared:/shared
- ${ANSIBLE_HOME}/ubuntu1/ansible:/home/ansible
- ${ANSIBLE_HOME}/ubuntu1/root:/root
networks:
- diveinto.io
ubuntu2:
hostname: ubuntu2
container_name: ubuntu2
image: spurin/diveintoansible:ubuntu
ports:
- ${UBUNTU2_PORT_SSHD}:22
- ${UBUNTU2_PORT_TTYD}:7681
privileged: true
volumes:
- ${CONFIG}:/config
- ${ANSIBLE_HOME}/shared:/shared
- ${ANSIBLE_HOME}/ubuntu2/ansible:/home/ansible
- ${ANSIBLE_HOME}/ubuntu2/root:/root
networks:
- diveinto.io
ubuntu3:
hostname: ubuntu3
container_name: ubuntu3
image: spurin/diveintoansible:ubuntu
ports:
- ${UBUNTU3_PORT_SSHD}:22
- ${UBUNTU3_PORT_TTYD}:7681
privileged: true
volumes:
- ${CONFIG}:/config
- ${ANSIBLE_HOME}/shared:/shared
- ${ANSIBLE_HOME}/ubuntu3/ansible:/home/ansible
- ${ANSIBLE_HOME}/ubuntu3/root:/root
networks:
- diveinto.io
centos1:
hostname: centos1
container_name: centos1
image: spurin/diveintoansible:centos_stream
ports:
- ${CENTOS1_PORT_SSHD}:22
- ${CENTOS1_PORT_TTYD}:7681
privileged: true
volumes:
- ${CONFIG}:/config
- ${ANSIBLE_HOME}/shared:/shared
- ${ANSIBLE_HOME}/centos1/ansible:/home/ansible
- ${ANSIBLE_HOME}/centos1/root:/root
networks:
- diveinto.io
centos2:
hostname: centos2
container_name: centos2
image: spurin/diveintoansible:centos_stream
ports:
- ${CENTOS2_PORT_SSHD}:22
- ${CENTOS2_PORT_TTYD}:7681
privileged: true
volumes:
- ${CONFIG}:/config
- ${ANSIBLE_HOME}/shared:/shared
- ${ANSIBLE_HOME}/centos2/ansible:/home/ansible
- ${ANSIBLE_HOME}/centos2/root:/root
networks:
- diveinto.io
centos3:
hostname: centos3
container_name: centos3
image: spurin/diveintoansible:centos_stream
ports:
- ${CENTOS3_PORT_SSHD}:22
- ${CENTOS3_PORT_TTYD}:7681
privileged: true
volumes:
- ${CONFIG}:/config
- ${ANSIBLE_HOME}/shared:/shared
- ${ANSIBLE_HOME}/centos3/ansible:/home/ansible
- ${ANSIBLE_HOME}/centos3/root:/root
networks:
- diveinto.io
# Docker in Docker
#
# Usage: on host that wishes to use docker
#
# sudo apt-get update
# sudo apt -y install docker.io
# export DOCKER_HOST=tcp://docker:2375
# docker ps -a
#
docker:
hostname: docker
container_name: docker
image: spurin/diveintoansible:dind
privileged: true
volumes:
- ${ANSIBLE_HOME}/shared:/shared
networks:
- diveinto.io
portal:
hostname: portal
container_name: portal
image: spurin/diveintoansible:portal
environment:
- NGINX_ENTRYPOINT_QUIET_LOGS=1
depends_on:
- centos1
- centos2
- centos3
- ubuntu1
- ubuntu2
- ubuntu3
ports:
- "1000:80"
networks:
- diveinto.io
networks:
diveinto.io:
name: diveinto.io
# Canonical bridge interface name
#
# The setting below provides a friendly name for the bridge interface
# as seen in the likes of the ip command. Use at your own discretion
#
#driver_opts:
# com.docker.network.bridge.name: "diveinto.io"
i used this with absolutely same files on another machine and it worked perfectly fine.
i installed docker and docker compose according to docker’s manuals. my docker version isnot docker desktop.