Hello Hans, it's DNS ;) You need to make sure, that "repo.maven.apache.org" can be resolved from your docker container (you can use tools such as host, dig, nslookup to verify that). This is may be tricky to debug, unless you're familiar with networking. A good place to start might be checking the /etc/resolv.conf for details about the DNS server being used.
Best, D. On Mon, Dec 20, 2021 at 3:39 PM HG <hanspeter.sl...@gmail.com> wrote: > Hello > I am trying to the flink-playground examples. > The docker-compose build fails on the mvn clean install command . > > I am behind a proxy. > To diagnose this I started a container based on the already created image > docker run -it --name my-maven-project -v "$(pwd)":/usr/src/mymaven -w > /usr/src/mymaven b92c6af9fde8 /bin/bash > Adding packages with apt goes fine > I added the proxy names with their ip addresses to /etc/hosts, added the > proxies to .m2/settings.xml > > After that it worked . > > But why does it not work without manual intervention? > > Regards Hans-Peter >