docker添加国内仓库安装iredmail

centos 7:

1、yum install docker or yum update docker

sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://registry.docker-cn.com"]
}
EOF

root@clouder:~# cat /etc/docker/daemon.json
{
  "registry-mirrors": ["https://registry.docker-cn.com"]
}

 

systemctl restart docker

docker pull cema/iredmail:example

sudo docker run -d -p 10443:443 -P -h mail.example.com cema/iredmail:example init 2

 

访问:

邮箱: https://localhost:10443/mail

管理后台:https://localhost:10443/iredadmin
With login: postmaster@example.com
And password: password_pm

 

 

ubuntu:

1、apt update

2、apt install docker.io

3、sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://registry.docker-cn.com"]
}
EOF

service docker restart

sudo docker pull cema/iredmail:example

sudo docker run -d -p 10443:443 -P -h mail.example.com cema/iredmail:example init 2

访问:

邮箱: https://localhost:10443/mail

管理后台:https://localhost:10443/iredadmin
With login: postmaster@example.com
And password: password_pm

 

posted @ 2017-11-16 22:51  遥远的绿洲  阅读(721)  评论(0编辑  收藏  举报