Attaches the named volume myvol at /data, persisting data beyond container restarts and removal. The short -v form is convenient; --mount offers more explicit options. Create the volume first or let Docker auto-create it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.