So I ran this command in terminal:
docker run --name postgres -e POSTGRES_DB=vapor \ -e POSTGRES_USER=vapor -e POSTGRES_PASSWORD=password \ -p 5432:5432 -d postgres
Then closed terminal and a day later I reopened terminal and ran the command above again, but this time I get an error:
docker: Error response from daemon: Conflict. The container name "/postgres" is already in use by container "945bd087501137a418eb8e0a7c7665fb2b7bb8c37e2afe22bf52e1200e89735e". You have to remove (or rename) that container to be able to reuse that name.
What does that mean? I’m not sure what to do next, is it ok to remove the container (how)?
Additionally, when I run xcode, I get this runtime error:
Thread 1: Fatal error: Error raised at top level: NIO.ChannelError.connectFailed(NIO.NIOConnectionError(host: "localhost", port: 5432, dnsAError: nil, dnsAAAAError: nil, connectionErrors: [NIO.SingleConnectionFailure(target: [IPv6]localhost/::1:5432, error: connection reset (error set): Connection refused (errno: 61)), NIO.SingleConnectionFailure(target: [IPv4]localhost/127.0.0.1:5432, error: connection reset (error set): Connection refused (errno: 61))]))
I’m not sure what it means.