User Tools

Site Tools


linux:containers:docker-cheatsheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:containers:docker-cheatsheet [24/12/2024 12:54] – created andrewlinux:containers:docker-cheatsheet [26/06/2025 14:52] (current) – [AWS ECR upload] andrew
Line 10: Line 10:
 This adds a Repository and tag, note the ''.'' at the end is required, it means look in this directory for the Dockerfile:- This adds a Repository and tag, note the ''.'' at the end is required, it means look in this directory for the Dockerfile:-
  
-  # docker build -t gss/sai:apache2-wsgi .+  # docker build -t unit/abc:apache2-wsgi .
      
   # docker build -t friendlyello --tag=friendlyhello .   # docker build -t friendlyello --tag=friendlyhello .
Line 16: Line 16:
   # docker image ls   # docker image ls
   REPOSITORY                 TAG            IMAGE ID       CREATED          SIZE   REPOSITORY                 TAG            IMAGE ID       CREATED          SIZE
-  gss/sai                    apache2-wsgi   324aaa642a04   10 seconds ago   300MB+  unit/abc                   apache2-wsgi   324aaa642a04   10 seconds ago   300MB
  
  
Line 40: Line 40:
 root@ubuntu20:~# docker image ls root@ubuntu20:~# docker image ls
 REPOSITORY                 TAG            IMAGE ID       CREATED         SIZE REPOSITORY                 TAG            IMAGE ID       CREATED         SIZE
-gss/sai                    apache2-wsgi   324aaa642a04   11 days ago     300MB+uit/abc                    apache2-wsgi   324aaa642a04   11 days ago     300MB
 </code> </code>
  
Line 154: Line 154:
  
 Or:- flask --app sample --debug run Or:- flask --app sample --debug run
 +
 +
 +====== AWS ECR upload ======
 +
 +
 +
 +<code json>
 +$ aws ecr create-repository --repository-name app01
 +{
 +    "repository": {
 +        "repositoryArn": "arn:aws:ecr:eu-west-1:123443211234:repository/app01",
 +        "registryId": "12344321123",
 +        "repositoryName": "app01",
 +        "repositoryUri": "12344321123.dkr.ecr.eu-west-1.amazonaws.com/app01",
 +        "createdAt": "2025-06-26T14:47:10.784000+00:00",
 +        "imageTagMutability": "MUTABLE",
 +        "imageScanningConfiguration": {
 +            "scanOnPush": false
 +        },
 +        "encryptionConfiguration": {
 +            "encryptionType": "AES256"
 +        }
 +    }
 +}
 +</code>
  
  
linux/containers/docker-cheatsheet.1735044841.txt.gz · Last modified: by andrew

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki