Cannot Umount Directory From Host To Container

Open
#443 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, node.js
Domain
devops

Research direction

Start by reading the compose.yml shown in the issue, focusing on the dev-frontend-node volume, working_dir, and command, then inspect /home/app inside the running container. Reproduce the missing package.json error and verify that packages/frontend is mounted and yarn can start; the issue provides no repository file or test to update.

Written by the indexing model from the issue text.

Description

I build compose.yml for buil container with nodejs official from strach
but all file to packages/frontend cannot read from container.

With error logs like this :

024-06-24 14:17:20 yarn run v1.22.22
2024-06-24 14:17:20 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2024-06-24 14:17:20 error Couldn't find a package.json file in "/home/app"

the code :

name: dev-syncmed-klinik

services:
  #
  dev-frontend-node:
    image: node:alpine
    container_name: dev-frontend
    working_dir: /home/app
    volumes:
      - ./packages/frontend:/home/app # Adjust path if needed
    networks:
      dev-syncmed-network:
        ipv4_address: 101.113.0.2
    ports:
      - "80:80"
    command: "yarn run start"

  dev-backend-node:
    image: node:alpine
    container_name: dev-backend
    working_dir: /home/app
    volumes:
      - ./packages/backend:/home/app # Adjust path if needed
      - test-data:/home/app
    links:
      - dev-mongodb
    networks:
      dev-syncmed-network:
        ipv4_address: 101.113.0.3
    ports:
      - "5000:5000"
    command: "yarn run start"
    depends_on:
      - dev-mongodb


  dev-mongodb:
    image: mongo:latest
    container_name: dev-mongodb
    environment:
      MONGO_INITDB_ROOT_USERNAME: -
      MONGO_INITDB_ROOT_PASSWORD: -
    ports:
      - "27017:27017"
    volumes:
      - mongodb-data:/data/db
    networks:
      dev-syncmed-network:
        ipv4_address: 101.113.0.4

volumes:
  mongodb-data:
    name: dev-mongodb
    driver: local
  test-data:
    driver: local

networks:
  dev-syncmed-network:
    driver: bridge
    ipam:
      config:
        - subnet: 101.113.0.0/24

Dominant language
JavaScript
Stars
3.1k
Forks
6.4k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from docker/getting-started

All issues in docker/getting-started

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.