当前位置:网站首页>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
边栏推荐
- 2021-01-31
- Solution to composer error could not find package
- Review of number theory
- There is no response to redirection and jump in the laravel constructor [original]
- Laravel uses phpword to generate word documents
- Use of better scroll
- Zhimeng CMS will file a lawsuit against infringing websites
- Modify the number of Oracle connections
- Nightmare
- The statistics in the MySQL field become strings, and then they are converted into numbers for sorting
猜你喜欢

How to use the configured slave data source for the scheduled task configuration class scheduleconfig

1.24 learning summary

Install cenos in the virtual machine

A new paradigm for large model application: unified feature representation optimization (UFO)

1.20 learning summary

Nabicat connection: local MySQL & cloud service MySQL and error reporting
![ctf [RoarCTF 2019]easy_ calc](/img/c7/16adb8e4b64a4be2129a6c53c5aaa7.jpg)
ctf [RoarCTF 2019]easy_ calc

Mysql8.0 configuring my SQL in INI file_ mode=NO_ AUTO_ CREATE_ User can start

Modify the number of Oracle connections

Svn error command revert error previous operation has not finished; run ‘ cleanup‘ if
随机推荐
Multipass中文文档-远程使用Multipass
2021/11/6-burpsuit packet capturing and web page source code modification
2022.2.11
SixTool-多功能多合一代挂助手源码
ROS 笔记(07)— 客户端 Client 和服务端 Server 的实现
2022.2.13
Thymeleaf data echo, single selection backfill, drop-down backfill, time frame backfill
Introduction to markdown grammar
Physical design of database design (2)
Jenkins introduces custom jars
Install Damon database
PHP installation SSH2 extension
企业的产品服务怎么进行口碑营销?口碑营销可以找人代做吗?
OSS CDN alicloud configuration method
Numpy index and slice
Tp6 multi table Association (table a is associated with table B, table B is associated with table C, and table d)
2.22.2.14
Alipay failed to verify the signature (sandbox test indicates fishing risk?) [original]
1.11 learning summary
1.16 learning summary