Skip to content
This repository was archived by the owner on Jun 9, 2024. It is now read-only.
This repository was archived by the owner on Jun 9, 2024. It is now read-only.

Error: 'No service selected' when running docker-compose up #4

@alexsrebernic

Description

@alexsrebernic

Issue Description:
When attempting to run docker-compose up, the following error is encountered: "No service selected." This appears to be related to an incorrect usage of the profiles section in the docker-compose.yml file.

Steps to Reproduce:

  1. Copy the docker-compose.yml file and Dockerfile from the ci-cd documentation in the root project directory
  2. Run docker-compose up.

Expected Behavior:
Docker Compose should start the specified services without any errors.

Actual Behavior:
Encountered the error "No service selected."

Workaround:
Remove the profiles section from both services in the docker-compose.yml file. Here's the corrected version:

version: "3.9"
services:
  synpress:
    container_name: synpress
    build: ./Dockerfile
    environment:
      - DISPLAY=display:0.0
      - CYPRESS_DOCKER_RUN=true
      - CI=true
    entrypoint: []
    working_dir: /app
    command: yarn cypress:run
    depends_on:
      - display
    networks:
      - x11

  display:
    container_name: display
    image: synthetixio/display:016121eafdfff448414894d0ca5a50b1d72b62eb-base
    environment:
      - RUN_XTERM=no
      - DISPLAY_WIDTH=800
      - DISPLAY_HEIGHT=600
    ports:
      - "8080:8080"
    networks:
      - x11

networks:
  x11:

Environment Information:

  • Operating System: Linux
  • Docker Version: Docker Desktop 24.0.7

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