Bitwarden On Docker

Docker

1
2
3
4
5
6
yum install docker
# ------
su root
systemctl enable docker
systemctl start docker
systemctl restart docker

Portainer

1
2
3
sudo docker pull portainer/portainer
sudo docker volume create portainer_data
sudo docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer

Bitwarden

1
2
docker pull bitwardenrs/server:latest
docker run -d --name bitwarden -v /var/run/bitwarden/:/data/ -p 80:9001 bitwardenrs/server:latest

Other

Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.

1
2
rm /etc/docker/daemon.json
systemctl restart docker

Image accelerator

1
2
sudo systemctl cat docker | grep '\-\-registry\-mirror'
sudo nano /etc/docker/daemon.json
1
2
3
{
"registry-mirrors": ["this link from aliyun"]
}
1
2
sudo systemctl daemon-reload
sudo systemctl restart docker

Refer

< - 僕らは知らない - >