Assignment Day2

update

docker update command allows to update the allocation of computing units and scheduling algorithm based on the actual hardware resources available.

docker update –cpus 0.5 –memory-swap 1073741824 –memory 1073741824 52659b1482a1 624ce71391eb

wait

docker wait command waits for one or more container to exit and provides the return status of the docker exit

[root@ip-172-31-15-56 centos]# docker wait 4638992d8355
0
[root@ip-172-31-15-56 centos]#

[root@ip-172-31-15-56 centos]# docker wait 1852fb6244e3
137
[root@ip-172-31-15-56 centos]#