Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo,

ich möchte den Inhalt eines Volumes auf einen Pfad in einem Container mappen.

Ich versuche es wie folgt: docker run -v VOLUMENAME:/pfad/im/container/ [...]

Allerdings verbleibt der Pfad im Container leer. Wie mache ich es richtig?

Hallo,

prinzipiell ist das so richtig. Ist das ein neues volume? was soll denn drin sein? wie hast du das volume erzeugt?

Du kannst auch so in das Volume hineinsehen, das sind unter linux normale Verzeichnisse.

  • Autor

Im Volumepfad (Über docker inspect "herausgefunden") liegt eine Textdatei "test.txt".

Diese sollte auch unter dem auf den Container gemappten Pfad zur verfügung stehen. Tut sie nur leider nicht.
Ich kann ausschließen das es ein Volume bezogenes Problem ist da auf einem anderen Host mit anderen Volumes das gleiche Problem auftritt.

du kannst mal mit docker ps --filter volume=<name vom volume> schauen ob das volume wirklich am container hängt

und mit docker inspect <name vom container> prüfen ob der pfad im ccontainer der erwartete ist (steht dann unter Mounts und typ muss volume sein)

ansonsten mal statt einem volume ein bind versuchen.

docker version und betriebssystem? welches image nutzt du als Grundlage? werde mal versuchen das nachzustellen.

hast du mal versucht einen pfad vom host in den container zu mappen? alternativ versuche mal --mount type=value... statt -v

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.