Run container in Docker host
# pull image (download image to local)
docker pull httpd:latest
To run a container we need a port
Types of ports in docker:
- Static port -p <port to access>:<application port>
Ex: apache application port 80
-p 8080:80 docker images i Info → U In Use IMAGE ID DISK USAGE CONTENT SIZE EXTRA demo-ubuntu:1.0 2b4a4d589d5e 157MB 41.6MB httpd:2.4.68 979c38c2228d 177MB 47.6MB httpd:latest 979c38c2228d 177MB 47.6MB
docker run -dit –name apache2 -p 8080:80 httpd:latest
Dynamic port
docker run -dit –name tomcat -P tomcat:9.0
Stop and clean containers and images
- Container commands
docker stop <container id>
docker rm <container id>
docker rm -f <container id>
docker rm -f $(docker ps -a -q)
Start container docker start <container id>
docker run docker create + docker start
Main fixes: grammar (“we need a port”, “To run a container”), spelling (“appllication” → “application”), the malformed nested markdown image link for rmi, and heading casing for consistency.
md fie
Created a file, read a file Here’s the corrected content as a downloadable .md file.
Docker container basics Document·MD Message collapsed markdown
Types of S3 buckets:
Amazon S3 provides different types of buckets based on use case.
1. General Purpose bucket:
- Everyday storage needs will be stored here
Use cases:
- File storage (photo, video, audio, etc.)
- Backup and archives (VM snapshots, zip or compressed files)
- Hosting static websites
Key features:
- Extremely durable (99.999999999%)
- Scales automatically
- Supports versioning
- Replication and lifecycle policy
2. Directory bucket:
- Bucket with folders/namespaces, similar to a file system
Use cases:
- Enterprise file shares
- Applications requiring folders
- data-product ==> Directory bucket name
- explore ==> folder/namespace
- logs
- discover
- logs
- databases-cache
- logs
- explore ==> folder/namespace
- Support operations
- data-product ==> Directory bucket name
Key features:
- Organizes objects like directory/subdirectory
- Easily manage workloads
3. Table bucket
- This bucket is optimized for tabular data
- Like CSV, Excel, and JSON kind of files
Key features:
- Schema-aware storage (name, age, blood group, location, college, etc.)
- Enables filtering and scanning large data
4. Vector bucket:
- Special bucket for storing vector embedding data
Use cases:
- ML ops / AI work
- Storing ML models
Key features:
- Supports high-dimension vector storage
- Integrates with AI/ML frameworks
aws s3api create-bucket --bucket amzn-qt-s3-demo-bucket --region us-east-1
md file
Created a file, read a file Here’s your .md file.
S3 bucket types Document·MD
Write a message…
Claude is AI and can make mistakes.
S3 bucket types · MD
Types of S3 buckets:
Amazon S3 provides different types of buckets based on use case.
1. General Purpose bucket:
- Everyday storage needs will be stored here Use cases:
- File storage (photo, video, audio, etc.)
- Backup and archives (VM snapshots, zip or compressed files)
- Hosting static websites Key features:
- Extremely durable (99.999999999%)
- Scales automatically
- Supports versioning
- Replication and lifecycle policy
2. Directory bucket:
- Bucket with folders/namespaces, similar to a file system Use cases:
- Enterprise file shares
- Applications requiring folders
- data-product ==> Directory bucket name
- explore ==> folder/namespace
- logs
- discover
- logs
- databases-cache
- logs
- explore ==> folder/namespace
- Support operations Key features:
- data-product ==> Directory bucket name
- Organizes objects like directory/subdirectory
- Easily manage workloads
3. Table bucket
- This bucket is optimized for tabular data
- Like CSV, Excel, and JSON kind of files Key features:
- Schema-aware storage (name, age, blood group, location, college, etc.)
- Enables filtering and scanning large data
4. Vector bucket:
- Special bucket for storing vector embedding data Use cases:
- ML ops / AI work
- Storing ML models Key features:
- Supports high-dimension vector storage
- Integrates with AI/ML frameworks
aws s3api create-bucket --bucket amzn-qt-s3-demo-bucket --region us-east-1
