What is wrong with my code??????
user
Can i help you? Waht is your Code?
assistant
When I run this command
docker run -d --name pgdb --hostname db --network mynet -p 5433:5432 -e POSTGRES_PASSWORD=password -v pgdb:/var/lib/postgresql/data postgres:15
I am getting the following error
docker: Error response from daemon: Conflict. The container name "/pgdb" is already in use by container "356110c3fc90aeb368cc8b53405cb7a64441db3f34bf624752897b3575303c23". You have to remove (or rename) that container to be able to reuse that name.
user