This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker run -t -i -p 3000 ngsmrk/express_image_01 /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh -i ~/.ssh/docker.pem ec2-user@<ip_address> | |
sudo yum install -y docker ; sudo service docker start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker commit 4045042195f9 ngsmrk/express_image_01 | |
sudo docker images | |
sudo docker push ngsmrk/express_image_01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker@boot2docker:~$ curl 0.0.0.0:49159 | |
<!DOCTYPE html><html><head><title>Express</title> | |
<link rel="stylesheet" href="/stylesheets/style.css"> | |
</head><body><h1>Express</h1> | |
<p>Welcome to Express</p></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker@boot2docker:~$ docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
4045042195f9 ubuntu:14.04 /bin/bash 10 minutes ago Up 10 minutes 0.0.0.0:49159->3000/tcp tender_morse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p /home/docker/dev | |
cd /home/docker/dev | |
sudo apt-get install nodejs -y | |
sudo apt-get install nodejs-legacy -y (fixes the problem with ubuntu using node to reference https://packages.debian.org/unstable/hamradio/ax25-node) | |
sudo apt-get install npm -y | |
npm install -g express-generator | |
express test_app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
boot2docker up | |
boot2docker ssh | |
user: docker | |
pass: tcuser | |
docker pull ubuntu | |
docker run -t -i -p 3000 ubuntu /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker attach 9dc78f548c4d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker inspect 9dc78f548c4d | |
[{ | |
"ID": "4131176604f460b8c346b60da84a62138228cd79c2150e55eca0fca197b376ec", | |
"Created": "2014-04-15T14:54:42.69142738Z", | |
"Path": "/run.sh", | |
"Args": [], | |
"Config": { | |
"Hostname": "4131176604f4", | |
"Domainname": "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
9dc78f548c4d tutum/wordpress:latest /run.sh 3 minutes ago Up 3 minutes 3306/tcp, 0.0.0.0:49154->80/tcp naughty_hypatia |