Cannot Umount Directory From Host To Container

オープン
#443 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
20/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
docker, node.js
領域
devops

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
JavaScript
スター
3.1k
フォーク
6.4k
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docker/getting-started のほかの issue

docker/getting-started の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。