How to resolve 'Couldn't find the store' error when Dockerizing Remix app?

Topic summary

A developer is encountering a “Couldn’t find the store” error when attempting to Dockerize a Shopify Remix app template. The error occurs despite the store existing in their Partners Account and having valid credentials configured via the Shopify CLI.

Technical Details:

  • Using the default CLI-generated Remix application
  • Docker setup includes basic Node.js Alpine image with npm install
  • Error suggests running --reset to reset app configuration

Investigation Progress:

  • The issue was traced to a specific call in the Shopify CLI codebase (fetch.ts)
  • The orgId and shopDomain parameters are verified as accurate
  • A GraphQL query (FindOrganization) is being executed to fetch store details
  • The store is not archived, yet it’s unclear why it’s not being returned by the API call

Current Status:

  • The developer has opened a GitHub issue (#4312) to track this problem
  • No resolution has been found yet
  • Seeking community input on successfully running this setup in Docker
Summarized with AI on November 14. AI used: claude-sonnet-4-5-20250929.

I am trying to run the default cli generated remix application in Docker. I am getting the following error when I try to stand the container up:

app-1  | ╭─ error ──────────────────────────────────────────────────────────────────────╮

app-1  | │                                                                              │

app-1  | │  Couldn't find the store with domain “foo.myshopify.com".          │

app-1  | │                                                                              │

app-1  | │  You can pass `--reset` to your command to reset your app configuration.     │

app-1  | │                                                                              │

app-1  | ╰──────────────────────────────────────────────────────────────────────────────╯

The weird thing is that the store does exist in my Partners Account. Has anyone been able to successfully get this running in Docker and / or know what the issue might be?

Dockerfile:

FROM node:20-alpine
WORKDIR /app
COPY . .
RUN npm install

docker-compose.yml

version: "3.9"

services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    command: sh -c "npm run dev"
    env_file: .env
    ports:
      - "3000:3000"
      - "8002:8002"
    volumes:
      - .:/app

.env, generated via npm run shopify config link:

SHOPIFY_CLI_PARTNERS_TOKEN="
2 Likes

I have narrowed it down to a call in the cli. I have verified that the orgId and shopDomain being passed are accurate. The generated graphql query is as follows:

|   query FindOrganization($id: ID!, $shopDomain: String) {
 |     organizations(id: $id, first: 1) {
 |       nodes {
 |         id
 |         businessName
 |         website
 |         stores(shopDomain: $shopDomain, first: 1, archived: false) {
 |           nodes {
 |             shopId
 |             link
 |             shopDomain
 |             shopName
 |             transferDisabled
 |             convertableToPartnerTest
 |           }
 |         }
 |       }
 |     }
 |   }

The store isn’t archived, so I am not sure why it wouldn’t be returned via the call.

I created an issue on Github.