skip to Main Content

Cat in script in docker

I have a container with node:18-alpine3.14 as base image. I have docker-compose file with command: ["prepare_config.sh","--","npm", "run", "start-p"] in prepare config #!/bin/bash json_data=$(cat <<EOF { "url": "$URL" } EOF ) echo "$json_data"; When I try to run this code I…

VIEW QUESTION

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
Back To Top
Search