Starting a docker container for Shopware 6 - docker

Im following this quickstart guide: https://github.com/shopware/platform#quickstart--installation
Everything worked until I tried to start the docker container via ./psh.phar docker:start in the cmd. The docker hub starts but no container. Im not getting any errors. Can someone help me?

Not quite an answer to your question, but I & Shopware recommends using https://dockware.io for the "quick start" of any of your docker work. Here is a link from their tutorial: https://developer.shopware.com/docs/guides/installation/dockware
I have used those images extensively & they boot up without much modifications needed.

Related

Docker Tutorial Part 8 compose

I'm doing this docker tutorial, but I keep encounter an error: Image of CMD.
and when i check my file:
Image of Compose-file
does anyone what i did wrong?
I am main follow the instructions on https://docs.docker.com/get-started/08_using_compose/
mysql should be on the level of app
indentation matters here..
you are adding mysql as sub comoponent of app service , but it should be on same level of app , as mysql is also one service

Docker Website using Node and Yarn wont let we access website

I just started writing docker files and am trying to start a website using docker but every time I run the file I cant access the website.
dockerfile
dockerlog
This is just a warning that the method is deprecated and does not affect the running of the application, it is not the cause of the problem.
I actually figured it out when running the docker run command adding the
--network="host" flag let me connect to the website

Testcontainers do not start after replacing Docker Desktop with minikube

I want to make my testcontainers in Java integration tests work with minikube replacing Docker Desktop.
I followed below article to get started:
https://www.atomicjar.com/2021/10/docker-on-windows-and-macos/#minikube
This is what I've got in testcontainers.properties
docker.client.strategy=org.testcontainers.dockerclient.EnvironmentAndSystemPropertyClientProviderStrategy
docker.host=tcp\://192.168.64.2\:2376
docker.cert.path=/Users/username/.minikube/certs
docker.tls.verify=true
Although my docker is up and running, I'm getting following exception:
Caused by: java.lang.IllegalStateException: Could not find a valid Docker environment. Please see logs and check configuration
Can anybody please suggest anything to make it working?
TA
If you are using gradle try -no-daemon flag to use a new daemon. Your old gradle daemon still using your previous testcontainers properties, also restart your IDE if you're running your build inside.
After restarting Minikube and Intellij editor, and updating testcontainer-bom to be the latest - from 1.15 to 1.16.2, I was able to pull some third-party docker images. This means docker is working now.
However, I'm still trying to find a way to work with local images (Other application docker images) for integration testing as it used to work with Docker Desktop.

Running `docker stack deploy` on a local VM results in "No such image" error even though the image is on the public registry

I'm trying to follow the Docker Get Started guide. Currently I'm at part 4. Everything up until the point
docker stack deploy -c docker-compose.yml getstartedlab
worked well. However, after trying to deploy the services, when I run docker stack ps getstartedlab, I see that the swarm manager keeps trying to restart the containers, since every time they get the error "No such image: username/get-st…" and have their state as "Rejected 6 seconds ago" etc.
I tried to search for solutions a bit but surprisingly it seems that nobody encountered this error before whatsoever. The issue here and a similar section in the Get Started guide talks about situations where one wants to pull from a private registry. However, throughout the tutorial I've been working with the default public registry. All previous steps (e.g. launching the swarm locally, without using virtualbox) worked fine.
Versions:
Docker version 18.02.0-ce, build fc4de447b5
Virtualbox 5.2.8 r120774
System Kernel: 4.14.25-1-MANJARO
Any idea what might have been the problem?
Surprisingly passing in the flag --with-registry-auth worked even though my repo is apparently on Docker Hub. Not sure what the problem was but maybe the claim that one would only need this flag if they're using a private registry is a bit inaccurate then.

No console output from any "docker run" invocation

While working on docker on windows following official documentation.
I ran the standard image hello-world and it worked fine first time and also tried other images as per tutorial(python program of hello world).
But after few days when I am trying to run those images again its not running giving no output on console.
It will be great if you could also suggest me where to look for logs for whats happening in background.
Following are the commands which I am using.
- docker images ls
- docker run hello-world
I restarted system and every image started executing.
Still dont know exact error which resulted in this situation.
Please suggest where to look for logs in case you know.

Resources