docker image ls
docker ps -a
docker container ls
Docker Swarm –
docker swarm init
docker service ls
docker service ps <name of the service> this will show the node where service is running
docker swarm leave –force
docker service logs kst-lv-de
docker service logs kst-lv-de
docker service ps kst-lv-dev
docker service rm kst-lv-dev
docker service create –replicas 1 –name kst-lv-dev –hostname cct-dev-vm01 –publish published=8899,target=8899 pankajrishi/cent8php8laravel:v4
docker stack deploy -c kst-swarm-alvmysql.yml kst-apachelvmysql
docker service create –name searchcontainer –replicas 2 -p 8899:9200 elasticsear
docker service create –name searchcontainer –replicas 2 -p 8899:9200 elasticsearch:2
docker service ps
docker service ls
docker service rm mtxz
docker service create –name searchcontainer –replicas 2 -p 8899:9200 elasticsearch:2
docker node ls
docker node ls
docker service inspect
Setup New Centos Stream image –
Get latest docker image from Centos official repo
https://quay.io/repository/centos/centos?tag=stream8&tab=tags
run below command -
docker pull quay.io/centos/centos:stream8
[kt-dku01@cct-dev-vm01 kst_dev01_bmarkets]$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx <none> 6084105296a9 2 weeks ago 133MB
mysql <none> 14340cbfa999 2 weeks ago 546MB
alpine <none> 28f6e2705743 6 weeks ago 5.61MB
quay.io/centos/centos stream8 de9f93110166 7 weeks ago 355MB
kt-dku01@KST_VM01 kst_dev01_bmarkets]$ docker run quay.io/centos/centos:stream8 bash
dnf install httpd
dnf install php php-curl php-bcmath php-dom php-xml php-mbstring php-json
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Last metadata expiration check: 0:16:42 ago on Thu Apr 1 20:32:36 2021.
[root@4ae87534d336 /]# dnf module list PHP
Extra Packages for Enterprise Linux Modular 8 - x86_64 307 kB/s | 557 kB 00:01
Extra Packages for Enterprise Linux 8 - x86_64 1.0 MB/s | 9.1 MB 00:09
Error: No matching Modules to list