...
Stop the existing container:
docker stop sunwave-mysql
Remove the container:
docker rm sunwave-mysql
Remove the docker image:
docker rmi 517729021141.dkr.ecr.us-east-1.amazonaws.com/sunwave-mysql:1.0.0-SNAPSHOT
Login into our aws docker registry:
aws ecr get-login-password --region us-east-1 --profile sunwave-dev | docker login --username AWS --password-stdin 517729021141.dkr.ecr.us-east-1.amazonaws.com
Pull the new image, create the container and run it:
docker run --platform linux/amd64 -p 3306:3306 --name sunwave-mysql --network sunwave -e MYSQL_ROOT_PASSWORD=Welcome1 -d 517729021141.dkr.ecr.us-east-1.amazonaws.com/sunwave-mysql:1.0.0-SNAPSHOT --lower_case_table_names=1
Make sure it’s running:
docker logs sunwave-mysql
Note the initial setup up will take a few minutes:
Update the data.
...