Skip to content

Instantly share code, notes, and snippets.

@DanielDaCosta
Created October 14, 2021 16:33
Show Gist options
  • Save DanielDaCosta/508ea0d68ce50c83443934895c0d0c64 to your computer and use it in GitHub Desktop.
Save DanielDaCosta/508ea0d68ce50c83443934895c0d0c64 to your computer and use it in GitHub Desktop.
sudo -u ec2-user docker pull $ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/mlflow:latest
# Run Container (Expose port 5000; Restart -always- after reboot)
docker run --env BUCKET=s3://{YOUR_BUCKET_NAME}/ --env USERNAME=$DB_USER --env PASSWORD=$DB_PASS \
--env HOST=$DB_HOST --env PORT=5432 --env DATABASE=mlflow \
-p 5000:5000 -d --restart always --name mlflow-server $ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/mlflow:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment