SQL Store
mysql -u root -e "CREATE USER 'nss'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON *.* TO 'nss'@'localhost'; CREATE DATABASE nss_db;"mysql -u nss -p -D nss_db -e "$(cat ./scripts/mysql.db.sql)"Example - Postgres
ID=$(docker run -d -e POSTGRES_PASSWORD=password -p 5432:5432 postgres)cat scripts/drop_postgres.db.sql | docker exec -i $ID psql -h 127.0.1.1 -U postgrescat scripts/postgres.db.sql | docker exec -i $ID psql -h 127.0.1.1 -U postgresexport DOCKER_BRIDGE_IP=$(docker inspect --format '{{(index .IPAM.Config 0).Gateway}}' bridge)Read and Write Timeouts
Options
Last updated
Was this helpful?