dockerfile-msf
dockerfile-msf copied to clipboard
Unable to start the container, postgres ipv6 issue
I can't get the container to start. I've used docker before on this machine (Ubuntu 18.04) for some things. I type:
sudo service postgresql stop # I tried this after seeing the error message but it doesn't help
docker run --rm -i -t -p 9990-9999:9990-9999 -v $HOME/.msf4:/root/.msf4 -v /tmp/msf:/tmp/data --name msf phocean/msf
I get:
Error: /usr/lib/postgresql/10/bin/pg_ctl /usr/lib/postgresql/10/bin/pg_ctl start -D /var/lib/postgresql/10/main -l /var/log/postgresql/postgresql-10-main.log -s -o -c config_file="/etc/postgresql/10/main/postgresql.conf" exited with status 1:
2020-11-04 07:35:25.261 UTC [29] LOG: listening on IPv4 address "127.0.0.1", port 5432
2020-11-04 07:35:25.261 UTC [29] LOG: could not bind IPv6 address "::1": Cannot assign requested address
2020-11-04 07:35:25.261 UTC [29] HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2020-11-04 07:35:25.355 UTC [29] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-11-04 07:35:25.560 UTC [30] LOG: database system was interrupted; last known up at 2020-09-26 21:23:58 UTC
pg_ctl: server did not start in time
[fail]
any ideas?