Docker Installation

Hello,
I am new to linux. I am trying to install mail server using docker installation:
after setup the hostname I run this command:

docker run --name=axigen -dt -v :/axigen/var -p 443:443 -p 9443:9443 -p 993:993 -p 995:995 -p 25:25 -p 465:465 -p 9000:9000 -p 7000:7000 axigen/axigen:10.4.3

But I got
-bash: volume: No such file or directory. help please . Do I need to do something before?

Hello @zems80,

The issue is that you did not include in your “docker run” command the location on disk where the persistent data will be saved:

docker run --name=axigen -dt -v :/axigen/var -p 443:443 -p 9443:9443 -p 993:993 -p 995:995 -p 25:25 -p 465:465 -p 9000:9000 -p 7000:7000 axigen/axigen:10.4.3

For example if you run docker on Linux or Mac you may create an “axigen” folder in your home and run axigen container using:

docker run --name=axigen -dt -v ~/axigen:/axigen/var -p 443:443 -p 9443:9443 -p 993:993 -p 995:995 -p 25:25 -p 465:465 -p 9000:9000 -p 7000:7000 axigen/axigen

Regards,
Florin

Hi Fkorin,

Thank so much for your help. I am using Ubuntu 20.4 can you please provide me the command?

Thanks

Hello @zems80 ,

  1. Create a the “axigen” folder in your user home folder:

mkdir ~/axigen

  1. Run axigen container using:

docker run --name=axigen -dt -v ~/axigen:/axigen/var -p 443:443 -p 9443:9443 -p 993:993 -p 995:995 -p 25:25 -p 465:465 -p 9000:9000 -p 7000:7000 axigen/axigen

Regards,
Florin

1 Like

Thanks, it working now

1 Like