Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Docker 命令备忘录

Yancey Leo edited this page Mar 26, 2020 · 1 revision

Docker

# Builds
#
# docker build -t blog-be-next .

# Runs
#
# docker run -d -p 127.0.0.1:3002:3002 --name blog-be-next blog-be-next:latest

# MongoDB
#
# docker run -d -p 127.0.0.1:27019:27017 --name mongodb mongo:latest

# Enter MongoDB's container
#
# docker exec -it mongodb bash

Docker compose

# Run
# docker-compose up -d
Clone this wiki locally