pullopen / pullopen.github.io

技术小白建站指南
https://pullopen.github.io/
8 stars 1 forks source link

如何升级Postgres数据库(Docker系统) - 技术小白搭建Mastodon站点指南 #10

Open pullopen opened 3 years ago

pullopen commented 3 years ago

https://pullopen.github.io/%E7%AB%99%E7%82%B9%E7%BB%B4%E6%8A%A4/2020/12/02/upgrade-postgres-on-Docker.html

Tastygeek commented 3 years ago

hhhi 博主好,我在执行全局备份的时候显示 docker: 'exec mastodon_mastodon-db_1' is not a docker command.是为什么哇

pullopen commented 3 years ago

@Tastygeek hhhi 博主好,我在执行全局备份的时候显示 docker: 'exec mastodon_mastodon-db_1' is not a docker command.是为什么哇

是不是打错了?

Tastygeek commented 3 years ago

@pullopen

@Tastygeek hhhi 博主好,我在执行全局备份的时候显示 docker: 'exec mastodon_mastodon-db_1' is not a docker command.是为什么哇

是不是打错了?

root@localhost:/opt/mastodon# docker exec mastodon_mastodon-db_1 pg_dumpall -c -U postgres > ./fullbackup.sql docker: 'exec mastodon_mastodon-db_1' is not a docker command. See 'docker --help'

俺没有技术经验,这样对吗~感谢

pullopen commented 3 years ago

不对啊,你docker ps看一下你mastodon数据库的容器叫什么名字……