Skip to content

Init scripts are not ran #16

@marevers

Description

@marevers

Hello there,

It seems the init scripts are not running. I've tried both the tags 2022-latest and 2019-latest. The behavior is the same with both.

This is what my compose configuration looks like:

  mssql:
    container_name: mssql
    image: kcollins/mssql:2019-latest
    platform: linux/amd64
    environment:
      - ACCEPT_EULA=Y
      - MSSQL_PID=Developer
      - MSSQL_DATABASE=master_dev
      - MSSQL_USER=reporting_user
      - MSSQL_SA_PASSWORD=${DB_PASSWORD}
      - MSSQL_PASSWORD=${DB_PASSWORD}
    volumes:
      - mssql_data:/var/opt/mssql
      - ./mssql-init:/docker-entrypoint-initdb.d
    ports:
      - "1433:1433"
    restart: unless-stopped

A script called mssql-init.sql is located in the mssql-init folder. However, looking at the logs I'm not seeing any login entries in the container that hint at the shell scripts running.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions