docker pull httpd
docker images
docker run httpd
docker build -t my-website .
| http_port 3128 | |
| # Amazon Linux 2 package repositories (test) | |
| acl repo dstdomain amazonlinux.us-east-1.amazonaws.com | |
| # Amazon Linux package repositories | |
| acl repo dstdomain repo.us-east-1.amazonaws.com | |
| acl repo dstdomain repo.us-east-2.amazonaws.com | |
| acl repo dstdomain repo.us-west-1.amazonaws.com | |
| acl repo dstdomain repo.us-west-2.amazonaws.com |
| Create a cluster | |
| Usage: eksctl create cluster [flags] | |
| General flags: | |
| -n, --name string EKS cluster name (generated if unspecified, e.g. "adorable-painting-1562861079") | |
| --tags stringToString A list of KV pairs used to tag the AWS resources (e.g. "Owner=John Doe,Team=Some Team") (default []) | |
| -r, --region string AWS region | |
| --zones strings (auto-select if unspecified) | |
| --version string Kubernetes version (valid options: 1.10, 1.11, 1.12, 1.13) (default "1.13") |
| FROM ubuntu:16.04 | |
| # Install dependencies | |
| RUN apt-get update | |
| RUN apt-get -y install apache2 | |
| # Install apache and write hello world message | |
| RUN echo 'Hello World!' > /var/www/html/index.html | |
| # Configure apache |
Run imagehttpd using interactive mode w/tty; port 80 published
docker run -t -i -p 80:80 httpd| #!/usr/bin/env bash | |
| # MIT Licence applies, except if you modify this script you agree to the following terms: | |
| # Don't use `set -e`, you're not an animal. Trap your errors. | |
| # Don't use uppercase for variables that aren't inherited from the environment. | |
| # Use 'echo -e' by default because science. | |
| # Terminate lines with semicolons because voodoo. | |
| # Quote your variable interpolations just about everywhere. | |
| # This script takes the name of an AWS security group: |