Skip to content

Commit c445ff7

Browse files
committed
add ec2 docker set up
1 parent 2699b51 commit c445ff7

File tree

5 files changed

+29
-2
lines changed

5 files changed

+29
-2
lines changed

docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const config: Config = {
6464
title: 'MVC Labs',
6565
logo: {
6666
alt: 'My Site Logo',
67-
src: 'img/logo.svg',
67+
src: 'img/microvisionchain.png',
6868
},
6969
items: [
7070
{

i18n/zh-CN/docusaurus-plugin-content-docs/current/nodes/installation/docker-build.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,33 @@ docker exec microvisionchain mvc-cli getinfo
110110
docker-compose是docker的一个管理工具,可以通过yaml文件来管理多个容器的启动和配置。在docker
111111
compose中,你可以指定节点的配置文件和数据目录绑定到主机,方便管理和维护。也可以设置节点网络桥接到主机等。
112112

113+
## 附录
113114

115+
### Aws EC2 Ubuntu instance 安装和初始化Docker服务
114116

117+
```bash
118+
#!/bin/bash
119+
# add docker group and add current user to docker group
120+
sudo groupadd docker
121+
sudo usermod -aG docker $USER
122+
123+
# Add Docker's official GPG key:
124+
sudo apt-get update
125+
sudo apt-get install ca-certificates curl
126+
sudo install -m 0755 -d /etc/apt/keyrings
127+
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
128+
sudo chmod a+r /etc/apt/keyrings/docker.asc
129+
130+
# Add the repository to Apt sources:
131+
echo \
132+
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
133+
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
134+
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
135+
sudo apt-get update
136+
137+
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
138+
139+
# Enable and start Docker
140+
systemctl enable docker
141+
systemctl start docker
142+
```

static/img/docusaurus.png

-5.02 KB
Binary file not shown.

static/img/logo.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

static/img/microvisionchain.png

15.5 KB
Loading

0 commit comments

Comments
 (0)