docker 經常使用服務建立命令

# postgre
docker run -d -p 5432:5432 --name postgresql --restart=always -e POSTGRES_PASSWORD=123456 -e POSTGRES_USER=postgres\
    -v /opt/pgdata:/var/lib/postgresql/data  postgres -c 'max_connections=1000' redis

#redis
docker run -d --name redis -p 6379:6379 --restart=always redis --requirepass "123redisabc" sql

相關文章
相關標籤/搜索