当前位置:网站首页>Multipass Chinese document - share data with instances
Multipass Chinese document - share data with instances
2022-06-26 04:40:00 【But the teacher】
General catalogue ( To be translated and perfected )
1. overview
2. course
3. Directions for use
3.1 install Multipass
3.1.1 be based on Linux
3.1.2 be based on macOS
3.1.3 be based on Windows
3.2 Manage instances
3.2.1 Create examples
3.2.2 Modify instance
3.2.3 Using examples
3.2.4 Use the instance command alias
3.2.5 Share data with instances
3.2.6 Remove instance
3.3 management Multipass
3.3.1 Set the drive
3.3.2 Use Multipass Service authorization agent
3.3.3 Remote use Multipass
3.3.4 Improve mount performance
3.3.5 Use Packer pack Multipass Mirror image
3.3.6 Set image interface
3.3.7 Use different macOS terminal
3.4 Troubleshoot problems
3.4.1 Connection log
3.4.2 Network troubleshooting
How to share data with instances
See also : Instance
This document shows how to share data between your hosts and instances . There are two ways to achieve , One is mount command , The other is transfer command .
Content :
Use mount command
Between host and Multipass Sharing data between instances , Recommended mount command :
$ multipass mount $HOME keen-yak
$ multipass info keen-yak
...
Mounts: /home/michal => /home/michal
From the start ,/home/michal Will be available within the instance .
You can also visualize the path in the instance to mount the local path :
$ multipass mount $HOME keen-yak:/some/path
Mounting can also be done in launch As one of the options in the command :
multipass launch --mount /some/local/path:/some/instance/path
Use umount Unhook the mounted path . You can use a specific path to unmount , You can also cancel all mounts at once without using the path :
$ multipass umount keen-yak
$ multipass info keen-yak
...
Mounts: --
Use transfer command
You can also use transfer The command only copies files . If the file is in the instance , Add before path Instance name Prefix :
$ multipass transfer keen-yak:/etc/crontab keen-yak:/etc/fstab /home/michal
$ ls -l /home/michal/crontab /home/michal/fstab
-rw-r--r-- 1 michal michal 722 Oct 18 12:13 /home/michal/crontab
-rw-r--r-- 1 michal michal 82 Oct 18 12:13 /home/michal/fstab
$ multipass transfer /home/michal/crontab /home/michal/fstab keen-yak
$ multipass exec keen-yak -- ls -l crontab fstab
-rw-rw-r-- 1 ubuntu ubuntu 722 Oct 18 12:14 crontab
-rw-rw-r-- 1 ubuntu ubuntu 82 Oct 18 12:14 fstab
Link to the original text
边栏推荐
- Install cenos in the virtual machine
- Composer version rollback version switching
- Basic query
- A new paradigm for large model application: unified feature representation optimization (UFO)
- 1.17 learning summary
- How can the intelligent transformation path of manufacturing enterprises be broken due to talent shortage and high cost?
- SSH password free login, my server password free login to the other server, the other server password free login to your server
- 2022.1.24
- SixTool-多功能多合一代挂助手源码
- digital image processing
猜你喜欢

08_SpingBoot 集成Redis

Install cenos in the virtual machine

OSS CDN alicloud configuration method

Dameng database backup and restore

CTF PHP audit bypasses filtering learning from topics

2022.1.24

企业的产品服务怎么进行口碑营销?口碑营销可以找人代做吗?

1.17 learning summary

6、 Project practice --- identifying cats and dogs

1.16 learning summary
随机推荐
1.19 learning summary
Fastadmin always prompts sqlstate[23000]: integrity constraint violation: 1052 column 'ID' in order clause is am
22.2.8
2022.2.16
CTF serialization and deserialization
2021-02-07
Numpy general function
Gateway can not connect to tcp://127.0.0.1: Connection refused
Thymeleaf data echo, single selection backfill, drop-down backfill, time frame backfill
Ueeditor automatically appends P tags to rich text.br tags always wrap.br tag solutions
Numpy index and slice
Mobile terminal pull-down loading pull-down loading data
[H5 development] 03- take you hand in hand to improve H5 development - single submission vs batch submission with a common interface
How to carry out word-of-mouth marketing for enterprises' products and services? Can word of mouth marketing be done on behalf of others?
PHP inherited in class return does not work
BACK-OFF RESTARTING FAILED CONTAINER 的解决方法
Realize video call and interactive live broadcast in the applet
Use of better scroll
Tips for using idea
Laravel framework Alipay payment fails to receive asynchronous callback request [original]