当前位置:网站首页>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
边栏推荐
- 微信小程序保存图片的方法
- Simple personal summary of tp6 multi application deployment -- Part I [original]
- 2.22.2.14
- Database design (I)
- Problem follow up - PIP source change
- How to use the configured slave data source for the scheduled task configuration class scheduleconfig
- 202.2.9
- Rdkit chemical formula molecular formula search
- Navicat connects the pit of shardingsphere sub table and sub library plug-ins
- 1.21 learning summary
猜你喜欢

08_SpingBoot 集成Redis

Gateway can not connect to tcp://127.0.0.1: Connection refused
![[geek challenge 2019] rce me](/img/92/978c54fb42391198300c76ae92893d.jpg)
[geek challenge 2019] rce me

Multipass中文文档-远程使用Multipass

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

2.9 learning summary

1.20 learning summary

Text horizontal alignment attribute text align and element vertical alignment attribute vertical align

TP5 distinct method paging problem

OSS CDN alicloud configuration method
随机推荐
2021-02-07
Solution to composer error could not find package
1.20 learning summary
Notes on enterprise wechat development [original]
基础查询
Floyd
记录一次循环引用的问题
PHP inherited in class return does not work
Create alicloud test instances
How to carry out word-of-mouth marketing for enterprises' products and services? Can word of mouth marketing be done on behalf of others?
Multipass中文文档-移除实例
Thinkphp6 using kindeditor
OSS CDN alicloud configuration method
What is the best way to store chat messages in a database? [Close] - best way to store chat messages in a database? [closed]
"Eight hundred"
2022 talent strategic transformation under the development trend of digital economy
202.2.9
Sort query
Tp6 multi table Association (table a is associated with table B, table B is associated with table C, and table d)
Multipass中文文档-与实例共享数据