Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Cannot Umount Directory From Host To Container

Aperta
#443 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
docker, node.js
Ambito
devops

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
JavaScript
Stelle
3.1k
Fork
6.4k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di docker/getting-started

Tutte le issue di docker/getting-started

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.