I'm going through the DO180 v4.2 course, and in ch03s02 lab there's a step which has you run a query against a mysql container:
[student@workstation ~]$ sudo podman exec mysql /bin/bash \ > -c 'mysql -uuser1 -p -e "select * from items.Projects;"' Enter password: mypa55 id name code 1 DevOps DO180
I'm doing this lab on a local VM rather than the classroom environment, but don't you need the -it parameter in order to get a console? When I run the command as documented it gives me an access denied error and never prompts for the password.
If I use "sudo podman exec -it ...." it works.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.