当前位置:网站首页>Multipass Chinese documentation - Tutorial
Multipass Chinese documentation - Tutorial
2022-06-11 00:15: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
course
Start - A hands-on one for beginners Multipass course
stay Multipass of use Docker Run the container in workflow mode
| key | value |
|---|---|
| overview | stay Multipass Run in Docker Containers |
| Category | multipass |
| difficulty | 2 |
| author | mailto:[email protected] |
overview
Multipass The team has recently A new Docker workflow , Allows users to connect to out of the box on any platform (out-of-the-box) Of Docker. This new workflow makes macOS,Windows,Linux Local development and testing on Docker Easy to be simple .
We are going to learn
- How to be in macOS or Windows On the use of Multipass Use Docker
- How they relate to
dockerCommand to our main command line - How to be in Multipass Use in Portainer Start a container
We need to prepare
- A computer with internet connection
install Multipass
Duration : 3 minute
We are going to be on our own machine , according to This tutorial , Start installation Multipass. Simply click on the operating system , Just follow the instructions .
Start a Docker virtual machine
Duration :1 minute
Multipass It's already installed , We can easily create a virtual machine to run Docker. Open the terminal , Input
multipass launch docker
This command will create a running the latest version Ubuntu Virtual machine , And has been installed Docker and Portainer. We can now use Docker 了 ! Try this command for yourself
multipass exec docker docker
relation Docker command
Duration :1 minute
Now associated docker Command to our host command line . Now we can run as if on the host Docker equally , Just use docker Command is enough . To associate commands , function
multipass alias docker:docker
This command returns instructions on how to add a new alias to the path . Simply copy and paste the displayed commands . It may grow like this :
PATH="$PATH:/home/<user>/snap/multipass/common/bin"
We can now use... Directly from the command line docker 了 . try , function
docker run hello-world
Use Portainer
Duration : 5 minute
We will go further , use Portainer.Docker The workflow is accompanied by the installed Portainer, It provides an easy to use (easy-to-yse) Graphical interface to manage Docker Containers . In order to connect Portainer, We need it first IP Address . The following command will display the Docker The virtual machine IP Address :
multipass list
It should list 2 individual IP Address , One is Docker Example of , The other is Portainer Of .Portainer Of IP Should be able to 10 Start .
stay Web Enter the first few steps in the browser Portainer IP Address and port , for example :“:9000”. According to the prompt , Set a user name and password , Then select manage local Docker Environmental Science , And click Connect .
Click the newly created "Local"( Local ) Environmental Science , To manage... On the local virtual machine Docker example .
Start the container
Duration : 5 minute
In this tutorial , We will be in Portainer Use in Ghost Template to create a blog . If you're looking for more ideas ,Portainer There are many others app Templates . If you want more options , You can start your Portainer Of Docker hub Or command line launch container .
stay Portainer Inside , Click... On the left toolbar App Templates , Then scroll down to Ghost Templates .
Now? , We can configure and deploy templates . Enter a name , Click the deployment . The bridge The Internet (bridge network) Is the default and correct option .
stay Container page , We can see 2 Containers are running . A container is Ghost, The other container is Portainer It itself .
We can now connect Ghost Blog , The port is Containers Port published on page . for example <VM IP Address>:<Ghost Port>
Only this and nothing more , We are Multipass The blog in the container has run successfully !
Next steps , Have a try Portainer Other App Templates ( step 5), Or you can look at Docker Hub Try more containers . If you want to try container choreography ,Microk8s or Multipass Of Minikube Workflow is a good place to start .
Link to the original text
边栏推荐
- 【AcWing】4. Multiple knapsack problem I
- Leetcode-15 sum of three numbers
- When leaving the web page, the website displays 404 Not found- starze V Club
- 【AI出牌器】第一次见这么“刺激”的斗地主,胜率高的关键因素竟是......
- Compared with the "South-to-North Water Transfer", what will the "east to west" of the fire bring to cloud computing?
- Bluetooth development (7) -- L2CAP layer connection process
- Lambda learning records
- JVM 垃圾回收机制和常见的垃圾回收器
- Bluetooth development (11) -- ble interacts happily
- 【Pygame小游戏】“史上最炫酷贪吃蛇”驾到,FUN开玩(不好玩不要钱)
猜你喜欢

【 pygame Games 】 don't find, Leisure Games Theme come 丨 Bubble Dragon applet - - Leisure Games Development recommendation

From the perspective of Confucius Temple IP crossover, we can see how the six walnuts become "butterflies" for the second time

C language file operation
![[fireworks in the sky] it's beautiful to light up the night sky with gorgeous fireworks. A programmer brought a fireworks show to pay New Year's greetings to everyone~](/img/3b/2fcd5ff2ea08c4c63428899babd522.png)
[fireworks in the sky] it's beautiful to light up the night sky with gorgeous fireworks. A programmer brought a fireworks show to pay New Year's greetings to everyone~

763. dividing alphabetic intervals
![[database] MySQL index interview questions](/img/ff/8713465293f728f57840237242e227.png)
[database] MySQL index interview questions

Leetcode-209 minimum length subarray

【Pygame小游戏】《坦克大战》,那些童年的游戏你还记得几个呢?
![[appearance detection artifact] come on, please show me your unique skill (is this appearance worthy of the audience?)](/img/c4/b571bec5fe0cd2968e078a8231d0bd.png)
[appearance detection artifact] come on, please show me your unique skill (is this appearance worthy of the audience?)

【Turtle表白合集】“海底月是天上月,眼前人是心上人。”余生多喜乐,长平安~(附3款源码)
随机推荐
[fireworks in the sky] it's beautiful to light up the night sky with gorgeous fireworks. A programmer brought a fireworks show to pay New Year's greetings to everyone~
QT client socket qtcpsocket specifies the local IP through bind
LeetCode 1996. 游戏中弱角色的数量*
静态方法static学习
Mysql database table backup
Things about Bluetooth development (1) -- starting with packet capturing data
Exemple VTK - - trois plans qui se croisent
安全生产月,黄埔开展燃气安全进商铺宣传活动
Leetcode-209 minimum length subarray
When leaving the web page, the website displays 404 Not found- starze V Club
Multipass中文文档-概览
SQL query, subquery as result field
【Pygame小游戏】趣味益智游戏 :打地鼠,看一下能打多少只呢?(附源码)
【Pygame合集】回忆杀-“童年游戏”,看看你中几枪?(附五款源码自取)
Pseudo static setting of Typecho - starze V Club
[pyGame games] here it is. This Gobang game is super A. share it with your friends~
Static method static learning
Njupt Nanyou Discrete Mathematics_ Experiment 1
Things about Bluetooth development (10) -- getting to know ble for the first time
[MVC&Core]ASP.NET Core MVC 视图传值入门