Skip to content

Instantly share code, notes, and snippets.

@zspine
Last active Aug 11, 2020
Embed
What would you like to do?
Frequently used fullstack developer commands
# DOCKER COMPOSE
####################################################################
docker-compose exec {CONTAINER_ID} sh
# DOCKER
####################################################################
# Copy a file from host to container
docker cp {FILNAME.sql} {CONTAINER_NAME}:/{FILNAME.sql}
# SQL
####################################################################
#import sql file
mysql -u db_user -p db_name < db_file.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment