Skip to content

IP after the container up? #7

@joutain

Description

@joutain

Hi, i use the below docker compose file to create the container with portainer and the process works!

but after the container running, i am not able to access the casaos as i could see the the container joined 2 networks with below IPS

  1. 172.21.0.2 bridge
  2. 10.22.0.2

so when i trying to access casaos with the host ip:8080, it always saying refused to connect.

browsing the entrypoint.sh and found below segment for creating the 10.22.0.0/16 network, so which IP should i use to bound with the container for access?

new to the docker world. Thanks in advance!

if ! docker network inspect "$net" &>/dev/null; then
  if ! docker network create --driver=bridge --subnet="10.22.0.0/16" "$net" >/dev/null; then
    error "Failed to create network '$net'!" && exit 14
  fi
  if ! docker network inspect "$net" &>/dev/null; then
    error "Network '$net' does not exist?" && exit 15
  fi
fi
services:
  casa:
    image: dockurr/casa
    container_name: casa
    ports:
      - 8080:8080
    volumes:
      - "/home/example:/DATA"
      - "/var/run/docker.sock:/var/run/docker.sock"
    restart: always
    stop_grace_period: 1m

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions