Browse Source

add cloud info

master
zeus 3 years ago
parent
commit
dd9c49f89c
  1. 42
      CloudComputing_Lab/modules/ROOT/pages/docker-compose.adoc

42
CloudComputing_Lab/modules/ROOT/pages/docker-compose.adoc

@ -77,8 +77,6 @@ services:
- myapp //<5> - myapp //<5>
#privileged: true #privileged: true
environment: environment:
- NODENAME=${NODENAME}
- NODENETWORK=${NODENETWORK}
- DISPLAY=\${DISPLAY} //<10> - DISPLAY=\${DISPLAY} //<10>
#cap_add: #cap_add:
# - NET_ADMIN //<11> # - NET_ADMIN //<11>
@ -103,5 +101,45 @@ networks:
<10> X app <10> X app
<11> use host net <11> use host net
== start service
=== docker-compose
.Docker-compose
[source,bash]
----
env MYPASSWORD=v9ptvq4dedcrtcrykjcubk28j \
docker-compose -f file.yml up
----
=== docker swarm
.Docker swarm
[source,bash]
----
env PASSWORD=K507R1zQ6Jifc9MAW3 \
docker stack deploy -c file.yml ondemand_os2
----
== stop service
=== docker-compose
.Docker-compose
[source,bash]
----
docker-compose -f file.yml down
----
=== docker swarm
.Docker swarm
[source,bash]
----
docker service rm ondemand_os2_myapp
docker service rm ondemand_os2_wyweb
----

Loading…
Cancel
Save