Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem setting Dgen docker container on Mac #39

Open
YoumnaAtta opened this issue Jul 18, 2024 · 0 comments
Open

problem setting Dgen docker container on Mac #39

YoumnaAtta opened this issue Jul 18, 2024 · 0 comments

Comments

@YoumnaAtta
Copy link

YoumnaAtta commented Jul 18, 2024

I am trying to setup dgen on my mac. I face this erorr when I try to create the docker container

(base) docker run --name postgis_1 -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -d mdillon/postgis
Unable to find image 'mdillon/postgis:latest' locally
latest: Pulling from mdillon/postgis
f7e2b70d04ae: Download complete
b891079ad2eb: Download complete
1dafb86732d6: Download complete
eda829b73ec7: Download complete
410147bb9559: Download complete
594497f0a694: Download complete
1b88625f7d89: Download complete
912fb62e7390: Download complete
ad1854653222: Download complete
a6ac0b663e77: Download complete
ca7201b6a21f: Download complete
48cdfad3f2fd: Download complete
7c040ef66643: Download complete
1e6365c64609: Download complete
cb64a97e42d9: Download complete
027ad848ac9c: Download complete
ee8d11af0d8f: Download complete
Digest: sha256:ac5dd18c43b0ee89320764684aa5c2da5c3c2ce54cf01a6caab21f905302d1b5
Status: Downloaded newer image for mdillon/postgis:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
f41b6fad6a22a0f11def2424819b9e5eefec21335866264f78a16cdbfc8e627d
docker: Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:5432 -> 0.0.0.0:0: listen tcp 0.0.0.0:5432: bind: address already in use.

I tried to use the alternative command:
(base) -Air ~ % docker run --name postgis_1 -p 5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -d mdillon/postgis
Unable to find image 'mdillon/postgis:latest' locally
latest: Pulling from mdillon/postgis
ee8d11af0d8f: Download complete
f7e2b70d04ae: Download complete
027ad848ac9c: Download complete
48cdfad3f2fd: Download complete
ca7201b6a21f: Download complete
912fb62e7390: Download complete
1dafb86732d6: Download complete
410147bb9559: Download complete
1e6365c64609: Download complete
a6ac0b663e77: Download complete
cb64a97e42d9: Download complete
ad1854653222: Download complete
eda829b73ec7: Download complete
7c040ef66643: Download complete
b891079ad2eb: Download complete
1b88625f7d89: Download complete
594497f0a694: Download complete
Digest: sha256:ac5dd18c43b0ee89320764684aa5c2da5c3c2ce54cf01a6caab21f905302d1b5
Status: Downloaded newer image for mdillon/postgis:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
11ecb713d7fdfe062ab6ce495d331f4a7d72e0cb2ce94f1920c1e1792229a959

It creates the container but it is not functioning properly. When I create the database in PgAdmin it is empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant