前端:hexo-theme-matery,就是我博客的hexo主题
后台:SimpleUi
Django:Django 3.0.5
Python:python3.7
👇 👇 👇 👇 👇 👇 👇 👇
👇 部署方法在文章最后 👇
👇 👇 👇 👇 👇 👇 👇 👇
$ curl -fsSL get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh --mirror Aliyun
检验Docker是否安装成功
$ docker run hello-world
Unable to find image 'hello-world:latest' locally
...
latest: Pulling from library/hello-world
1b930d010525: Pull complete
...
Hello from Docker!
This message shows that your installation appears to be working correctly.
...
根据新版本的变化自行调整下面命令中的版本来安装:
# 下载docker-compose
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# 给docker-compose执行权限
$ chmod +x /usr/local/bin/docker-compose
# 查看docker compose版本,测试是否安装成功
$ docker-compose version
docker-compose version 1.25.5, build 8a1c60f6
docker-py version: 4.1.0
CPython version: 3.7.5
OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019
$ sudo apt install python3
$ sudo apt-get install python3-pip
$ pip3 install --upgrade pip
$ git clone https://github.com/jwt1399/Django_Blog.git
$ docker-compose up #构建镜像并启动容器
如果你觉得对你有帮助,你可以赞助我一杯冰可乐吧!
支付宝支付 | 微信支付 |