skip to Main Content

Get docker mysql root password in a variable

I created a mysql docker container mysqlcontainer using following command: docker exec -it mysqlcontainer -d mysql/mysql-server I run docker logs mysqlcontainer and get the following: [Entrypoint] GENERATED ROOT PASSWORD: FB=?ySG5,3#@kur&,Wj459fk2Gy2C_O8 [Entrypoint] ignoring /docker-entrypoint-initdb.d/* [Entrypoint] MySQL init process done. Ready for…

VIEW QUESTION

Call commands within docker container

I have a docker container where I need to run some commands. Usually, I do this manually by running the following commands: host> docker exec -it my-container bash container> eval $(ssh-agent) container> ssh-add ~/.ssh/my-key <TYPE PASSPHRASE!!!> container> pytest I've tried…

VIEW QUESTION
Back To Top
Search