-
Notifications
You must be signed in to change notification settings - Fork 564
/
Copy pathdocker build.txt
67 lines (52 loc) · 2.6 KB
/
docker build.txt
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
docker build -t classifiedads.webmvc .
docker build -t classifiedads.webmvc:1.0.0 .
docker run -d -p 8080:80 --name classifiedads.webmvc classifiedads.webmvc
docker run -d -p 8081:80 --name classifiedads.webapi classifiedads.webapi
docker run -d -p 8082:80 --name classifiedads.identityserver classifiedads.identityserver
docker build -f "ClassifiedAds.Background\Dockerfile" -t classifiedads.background .
docker build -f "ClassifiedAds.Migrator\Dockerfile" -t classifiedads.migrator .
docker build -f "ClassifiedAds.WebAPI\Dockerfile" -t classifiedads.webapi .
docker build -f "ClassifiedAds.BlazorServerSide\Dockerfile" -t classifiedads.blazor .
docker build -f "ClassifiedAds.IdentityServer\Dockerfile" -t classifiedads.identityserver .
docker build -f "ClassifiedAds.WebMVC\Dockerfile" -t classifiedads.webmvc .
docker tag classifiedads.background phongnguyend/classifiedads.background
docker tag classifiedads.migrator phongnguyend/classifiedads.migrator
docker tag classifiedads.webapi phongnguyend/classifiedads.webapi
docker tag classifiedads.blazor phongnguyend/classifiedads.blazor
docker tag classifiedads.identityserver phongnguyend/classifiedads.identityserver
docker tag classifiedads.webmvc phongnguyend/classifiedads.webmvc
docker push phongnguyend/classifiedads.background
docker push phongnguyend/classifiedads.migrator
docker push phongnguyend/classifiedads.webapi
docker push phongnguyend/classifiedads.blazor
docker push phongnguyend/classifiedads.identityserver
docker push phongnguyend/classifiedads.webmvc
docker-compose build
docker-compose up
docker-compose build blazorserverside
docker-compose up webmvc
docker-compose up blazorserverside
docker --version
docker version
docker images
docker image ls
docker rmi -f xxx
docker ps
docker ps -a
docker start
docker stop
docker rm xxx
docker tag classifiedads.web acr.azurecr.io/classifiedads.web
docker push acr.azurecr.io/classifiedads.web
docker run -d --name rabbitmq -p 5672:5672 -p 5673:5673 -p 15672:15672 rabbitmq:3-management
- Make sure Line Ending for these files is Unix (LF):
| Project | File |
| -------- | ---- |
| ClassifiedAds.Migrator | [docker-entrypoint.sh](/src/ClassifiedAds.Projects/ClassifiedAds.Migrator/docker-entrypoint.sh) |
| ClassifiedAds.Background | [docker-entrypoint.sh](/src/ClassifiedAds.Projects/ClassifiedAds.Background/docker-entrypoint.sh) |
| ClassifiedAds.WebMVC | [docker-entrypoint.sh](/src/ClassifiedAds.Projects/ClassifiedAds.WebMVC/docker-entrypoint.sh) |
Otherwise you might encounter:
```
exec user process caused "no such file or directory"
```
Tip: Open Notepad++ -> Edit -> EOL Conversion -> Unix (LF)