---
title: "Comment by hatem ben tayeb on \"Push your Docker containers from GitLab to Amazon ECR\" | Hashnode"
description: "Nice work! I suggest creating your own image that contains aws-cli, get rid of variables on top and put it into GitLab as secrets to make the pipeline more simp"
url: "https://hashnode.com/posts/push-your-docker-containers-from-gitlab-to-amazon-ecr/5ffc7523aa5c467fe155b129/comment/5ffc78fba538d001351571cf"
---

[Discussion](https://hashnode.com/posts/push-your-docker-containers-from-gitlab-to-amazon-ecr/5ffc7523aa5c467fe155b129)

Comment [Push your Docker containers from GitLab to Amazon ECR](https://hashnode.com/posts/push-your-docker-containers-from-gitlab-to-amazon-ecr/5ffc7523aa5c467fe155b129)

[hatem ben tayeb](https://hashnode.com/@btx)

[Jan 11, 2021](https://hashnode.com/posts/push-your-docker-containers-from-gitlab-to-amazon-ecr/5ffc7523aa5c467fe155b129/comment/5ffc78fba538d001351571cf)

Nice work! I suggest creating your own image that contains aws-cli, get rid of variables on top and put it into GitLab as secrets to make the pipeline more simple and readable.

[DINA](https://hashnode.com/@cisel)

[Jan 12, 2021](https://hashnode.com/posts/push-your-docker-containers-from-gitlab-to-amazon-ecr/5ffc7523aa5c467fe155b129/comment/5ffc78fba538d001351571cf#reply-5ffd75cb14d2f06c78ddf685)

Thank you for your comments and suggestions. You are absolutely right! We thought that showing the various variables and the use of awscli in the code might help to better understand the process.
