I'm working on a task where I need to run mongo-express to show a website. Upon running docker-compose up, I am presented with an admin error. please see the images below of both the docker-compose.yml file and a screenshot of the error. Any help would be great.
How am i able to resolve this issue.
Related
I've just started 'kicking the tires' on Concourse-CI, using the quickstart tutorial as my starting point. That much works fine.
I've created a super basic pipeline with a single task, just like the quickstart tutorial. But instead of pulling the busybox image and executing the echo command, I'm pulling another image, and running a command that would try to update a local postgres db.
When I run the pipeline - my task (docker image writing to local postgres db) fails - because connection can't be made to the local db. I've searched far and wide - and can't seem to figure out how to do this. In the docker-compose from the quickstart tutorial, I've tried adding CONCOURSE_CONTAINERD_ALLOW_HOST_ACCESS: "true" to no avail
Any suggestions on how I may be able to achieve this?
Turns out my issue had nothing to do with Concourse.
The local postgres instance I was attempting to write to was only accepting connections from localhost - which won't allow connections from Docker containers. I updated postgres setting to allow remote connections - and all is well.
I read docker support was not ready yet, but docker recently published a preview of their new version that seems to be working. Next issue is that MySQL images are only available on x86_64 and not arm, but MariaDb has one. Unfortunately, I'm not versed enough in Docker to be able to get that working. Finally, I tried installing prisma with a postgres db but couldn't get that working either.
Has anyone had success getting prisma working on the new Apple MC M1 devices? If so, please advise how you got it working.
Edit: Here is the Error Message when I prisma init for a mysql db and run docker-compose up -d
"ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries"
I've come to learn that this is because there isn't a mysql image for arm yet (but there is one for mariadb).
So when I changed the docker-compose file to load the mariadb image instead, docker-compose up -d runs successfully, but when I open http://localhost:4466 in my browser localhost refuses to connect.
The same "localhost refused to connect" result also occurs if I set up prisma for postgres or mongodb too.
Any help is appreciated
Running pgAdmin 4.2.0 in a Docker container using the image dpage/pgadmin4, I notice that server connections are not being saved.
The container is created with the volume mapping:
./data/pgadmin:/root/.pgadmin
When the docker container is restarted, or when a user re-login to the dashboard, all the previously entered server connection details are gone.
How can we ensure that the connection details are properly saved?
For anyone still with this issue, I got it working using container folder /var/lib/pgadmin, so in your yml volume:
./data/pgadmin:/var/lib/pgadmin
Do you start it with docker run dpage/pgadmin4 or docker start {containerID}?
When I was doing it with docker run I had similar issues as you, but when I changed to docker start all connection details were normally there (even after computer reboot).
I setting up a project using docker, nodejs and mongodb. Here is my configuration: https://github.com/tuanna2704/docker-express/blob/master/docker-compose.yml
after I run
docker-compose up
And I can access to http://localhost:4000 via my real machine but application cannot access to db container. Im newbie docker. Any one can explain for me reason why? Thanks a lot!
Check mongo client mongodb://localhost:27017/ working status after
docker-compose up in your local machine; If it works, then mongodb://mongo:27017/ should be fine
Better add tags in the image name image: mongo:latest
I'm following http://bradgessler.com/articles/docker-bundler. The first time around, it made "bundler fast again". I started getting issues with some missing linked files in the gems, so I blew away the docker images, and did a docker-compose build. After it built, I could no longer do docker-compose run web bundle -- I get this:
Creating network "myapp_default" with the default driver
Pulling bundle (myapp_web:latest)...
Pulling repository docker.io/library/myapp_web
ERROR: Error: image library/myapp_web:latest not found
How do I resolve this?
Following the same article, here are the steps that worked for me:
Run docker-compose build web
Find the name of your web image: run docker images. Mine was 'appcontainer_web'
Open docker-compose.yml and replace 'image: myapp_web' with 'image: [your_image_name]'
After the above change I still encountered an error: No closing quotation. The fix was to remove the quote from "I'm" in that same docker-compose.yml file "command: echo I'm a little..."