Skip to content

Commit

Permalink
add ec2 docker set up
Browse files Browse the repository at this point in the history
  • Loading branch information
KaKeimei committed Apr 11, 2024
1 parent 2699b51 commit c445ff7
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const config: Config = {
title: 'MVC Labs',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
src: 'img/microvisionchain.png',
},
items: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,33 @@ docker exec microvisionchain mvc-cli getinfo
docker-compose是docker的一个管理工具,可以通过yaml文件来管理多个容器的启动和配置。在docker
compose中,你可以指定节点的配置文件和数据目录绑定到主机,方便管理和维护。也可以设置节点网络桥接到主机等。

## 附录

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

```bash
#!/bin/bash
# add docker group and add current user to docker group
sudo groupadd docker
sudo usermod -aG docker $USER

# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

# Enable and start Docker
systemctl enable docker
systemctl start docker
```
Binary file removed static/img/docusaurus.png
Binary file not shown.
1 change: 0 additions & 1 deletion static/img/logo.svg

This file was deleted.

Binary file added static/img/microvisionchain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c445ff7

Please sign in to comment.