Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install docker ec2

sudo amazon-linux-extras install docker -y
Comment

install docker ec2

sudo service docker start
Comment

Install Docker Engine on EC2 Instance

# Install Docker Engine on EC2 Instance
sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user

LOGOUT and login

sudo su - ec2-user

# Build Docker Image
cd aws-sa-associate-saac02/09-Containers-ECS/container_of_cats/container
docker build -t containerofcats .
docker images --filter reference=containerofcats

# Run Container from Image
docker run -t -i -p 80:80 containerofcats

# Upload Container to Dockerhub (optional)
docker login --username=YOUR_USER
docker images
docker tag IMAGEID YOUR_USER/containerofcats
docker push YOUR_USER/containerofcats:latest
Comment

install docker ec2

sudo yum update -y
Comment

install docker ec2

sudo usermod -a -G docker ec2-user
Comment

PREVIOUS NEXT
Code Example
Shell :: powershell do while loop 
Shell :: How to start a service with systemctl command 
Shell :: fedora microsoft font 
Shell :: how to install kivy.app 
Shell :: npm install strapi 
Shell :: git command history 
Shell :: htpasswd add user 
Shell :: bash command substitution 
Shell :: how to start xampp in ubuntu from terminal 
Shell :: get first line of output bash 
Shell :: see network trafic linux 
Shell :: how to setup vim plugins 
Shell :: install fleetssl 
Shell :: how do I run a container in docker using a dockerfile 
Shell :: add gif github readme 
Shell :: how to upgrade to wsl 2 
Shell :: whereis alpine 
Shell :: lock symbol on files in ubuntu 
Shell :: how to delete all branches in git except master 
Shell :: git stash example 
Shell :: ubuntu upgrade certbot acme v2 
Shell :: create a git repository from local machine and push it online 
Shell :: how to check what module pip has already install 
Shell :: ldap query powershell 
Shell :: install node and npm ubuntu 
Shell :: cara install laravel 
Shell :: create folder with shell/bash 
Shell :: ubuntu check available packages 
Shell :: git push existing code to new repository 
Shell :: docker image tar import 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =