-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomandos_executados
50 lines (25 loc) · 883 Bytes
/
comandos_executados
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
docker pull ubuntu
docker images
docker run ubuntu echo "hello world"
docker run --name servico -d ubuntu sh -c "while true; do echo hello world; sleep 1; done"
docker ps
docker attach servico
docker stop servico
docker start servico
docker restart servico
docker run --name interativo -i -t ubuntu bash
sudo apt-get -y update
sudo apt-get install -y nginx
sudo apt-get -y install vim
service nginx status
sudo vim /etc/nginx/nginx.conf
daemon off;
docker commit interativo coach/nginx
docker run --name web -d -p 80 coach/nginx sudo service nginx start
curl 127.0.0.1
http://localhost
docker rm -f web
docker run --name web -d -p 80:80 -v /home/bruno/git/coach-docker/site/:/usr/share/nginx/html coach/nginx sudo service nginx start
docker build -t coach/nginx .
docker run --name web -d -p 80:80 coach/nginx
docker tag coach/nginx brunobelarmino/coach:1.0