[{"data":1,"prerenderedAt":1552},["ShallowReactive",2],{"content-all-\u002Fdocker\u002Fcheat-sheets":3,"related-\u002Fdocker\u002Fcheat-sheets":1412,"sidebar-content":1525},[4],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"tags":11,"date":14,"weight":15,"body":16,"_type":1406,"_id":1407,"_source":1408,"_file":1409,"_stem":1410,"_extension":1411},"\u002Fdocker\u002Fcheat-sheets","docker",false,"","Docker Cheat Sheets","Cheat sheets for frequently used Docker commands and concepts",[6,12,13],"devops","infrastructure","2026-05-01",100,{"type":17,"children":18,"toc":1395},"root",[19,28,318,322,328,433,436,442,530,533,539,627,630,636,1018,1021,1027,1310,1313,1319,1336],{"type":20,"tag":21,"props":22,"children":24},"element","h2",{"id":23},"docker-images",[25],{"type":26,"value":27},"text","Docker Images",{"type":20,"tag":29,"props":30,"children":31},"table",{},[32,51],{"type":20,"tag":33,"props":34,"children":35},"thead",{},[36],{"type":20,"tag":37,"props":38,"children":39},"tr",{},[40,46],{"type":20,"tag":41,"props":42,"children":43},"th",{},[44],{"type":26,"value":45},"Description",{"type":20,"tag":41,"props":47,"children":48},{},[49],{"type":26,"value":50},"Command Example",{"type":20,"tag":52,"props":53,"children":54},"tbody",{},[55,71,89,106,120,137,154,171,185,202,219,236,250,267,284,301],{"type":20,"tag":37,"props":56,"children":57},{},[58,68],{"type":20,"tag":59,"props":60,"children":61},"td",{},[62],{"type":20,"tag":63,"props":64,"children":65},"strong",{},[66],{"type":26,"value":67},"Docker Build",{"type":20,"tag":59,"props":69,"children":70},{},[],{"type":20,"tag":37,"props":72,"children":73},{},[74,79],{"type":20,"tag":59,"props":75,"children":76},{},[77],{"type":26,"value":78},"Build an image from a Dockerfile",{"type":20,"tag":59,"props":80,"children":81},{},[82],{"type":20,"tag":83,"props":84,"children":86},"code",{"className":85},[],[87],{"type":26,"value":88},"docker build -t myapp:latest .",{"type":20,"tag":37,"props":90,"children":91},{},[92,97],{"type":20,"tag":59,"props":93,"children":94},{},[95],{"type":26,"value":96},"Build an image from a Dockerfile with a specific tag",{"type":20,"tag":59,"props":98,"children":99},{},[100],{"type":20,"tag":83,"props":101,"children":103},{"className":102},[],[104],{"type":26,"value":105},"docker build -t myapp:1.0 .",{"type":20,"tag":37,"props":107,"children":108},{},[109,117],{"type":20,"tag":59,"props":110,"children":111},{},[112],{"type":20,"tag":63,"props":113,"children":114},{},[115],{"type":26,"value":116},"Docker Pull",{"type":20,"tag":59,"props":118,"children":119},{},[],{"type":20,"tag":37,"props":121,"children":122},{},[123,128],{"type":20,"tag":59,"props":124,"children":125},{},[126],{"type":26,"value":127},"Pull an image from a registry",{"type":20,"tag":59,"props":129,"children":130},{},[131],{"type":20,"tag":83,"props":132,"children":134},{"className":133},[],[135],{"type":26,"value":136},"docker pull nginx",{"type":20,"tag":37,"props":138,"children":139},{},[140,145],{"type":20,"tag":59,"props":141,"children":142},{},[143],{"type":26,"value":144},"Pull an image with a specific tag",{"type":20,"tag":59,"props":146,"children":147},{},[148],{"type":20,"tag":83,"props":149,"children":151},{"className":150},[],[152],{"type":26,"value":153},"docker pull nginx:latest",{"type":20,"tag":37,"props":155,"children":156},{},[157,162],{"type":20,"tag":59,"props":158,"children":159},{},[160],{"type":26,"value":161},"Pull an image from a private registry",{"type":20,"tag":59,"props":163,"children":164},{},[165],{"type":20,"tag":83,"props":166,"children":168},{"className":167},[],[169],{"type":26,"value":170},"docker pull myregistry.com\u002Fmyapp:latest",{"type":20,"tag":37,"props":172,"children":173},{},[174,182],{"type":20,"tag":59,"props":175,"children":176},{},[177],{"type":20,"tag":63,"props":178,"children":179},{},[180],{"type":26,"value":181},"Docker Push",{"type":20,"tag":59,"props":183,"children":184},{},[],{"type":20,"tag":37,"props":186,"children":187},{},[188,193],{"type":20,"tag":59,"props":189,"children":190},{},[191],{"type":26,"value":192},"Push an image to a registry",{"type":20,"tag":59,"props":194,"children":195},{},[196],{"type":20,"tag":83,"props":197,"children":199},{"className":198},[],[200],{"type":26,"value":201},"docker push myapp:latest",{"type":20,"tag":37,"props":203,"children":204},{},[205,210],{"type":20,"tag":59,"props":206,"children":207},{},[208],{"type":26,"value":209},"Push an image to a registry with a specific tag",{"type":20,"tag":59,"props":211,"children":212},{},[213],{"type":20,"tag":83,"props":214,"children":216},{"className":215},[],[217],{"type":26,"value":218},"docker push myapp:1.0",{"type":20,"tag":37,"props":220,"children":221},{},[222,227],{"type":20,"tag":59,"props":223,"children":224},{},[225],{"type":26,"value":226},"Push an image to a private registry",{"type":20,"tag":59,"props":228,"children":229},{},[230],{"type":20,"tag":83,"props":231,"children":233},{"className":232},[],[234],{"type":26,"value":235},"docker push myregistry.com\u002Fmyapp:latest",{"type":20,"tag":37,"props":237,"children":238},{},[239,247],{"type":20,"tag":59,"props":240,"children":241},{},[242],{"type":20,"tag":63,"props":243,"children":244},{},[245],{"type":26,"value":246},"Others",{"type":20,"tag":59,"props":248,"children":249},{},[],{"type":20,"tag":37,"props":251,"children":252},{},[253,258],{"type":20,"tag":59,"props":254,"children":255},{},[256],{"type":26,"value":257},"List images",{"type":20,"tag":59,"props":259,"children":260},{},[261],{"type":20,"tag":83,"props":262,"children":264},{"className":263},[],[265],{"type":26,"value":266},"docker images",{"type":20,"tag":37,"props":268,"children":269},{},[270,275],{"type":20,"tag":59,"props":271,"children":272},{},[273],{"type":26,"value":274},"Remove an image",{"type":20,"tag":59,"props":276,"children":277},{},[278],{"type":20,"tag":83,"props":279,"children":281},{"className":280},[],[282],{"type":26,"value":283},"docker rmi myapp:latest",{"type":20,"tag":37,"props":285,"children":286},{},[287,292],{"type":20,"tag":59,"props":288,"children":289},{},[290],{"type":26,"value":291},"Tag an image",{"type":20,"tag":59,"props":293,"children":294},{},[295],{"type":20,"tag":83,"props":296,"children":298},{"className":297},[],[299],{"type":26,"value":300},"docker tag myapp:latest myrepo\u002Fmyapp:latest",{"type":20,"tag":37,"props":302,"children":303},{},[304,309],{"type":20,"tag":59,"props":305,"children":306},{},[307],{"type":26,"value":308},"Show the history of an image",{"type":20,"tag":59,"props":310,"children":311},{},[312],{"type":20,"tag":83,"props":313,"children":315},{"className":314},[],[316],{"type":26,"value":317},"docker history myapp:latest",{"type":20,"tag":319,"props":320,"children":321},"hr",{},[],{"type":20,"tag":21,"props":323,"children":325},{"id":324},"docker-containers",[326],{"type":26,"value":327},"Docker Containers",{"type":20,"tag":29,"props":329,"children":330},{},[331,345],{"type":20,"tag":33,"props":332,"children":333},{},[334],{"type":20,"tag":37,"props":335,"children":336},{},[337,341],{"type":20,"tag":41,"props":338,"children":339},{},[340],{"type":26,"value":45},{"type":20,"tag":41,"props":342,"children":343},{},[344],{"type":26,"value":50},{"type":20,"tag":52,"props":346,"children":347},{},[348,365,382,399,416],{"type":20,"tag":37,"props":349,"children":350},{},[351,356],{"type":20,"tag":59,"props":352,"children":353},{},[354],{"type":26,"value":355},"Run a container",{"type":20,"tag":59,"props":357,"children":358},{},[359],{"type":20,"tag":83,"props":360,"children":362},{"className":361},[],[363],{"type":26,"value":364},"docker run -d -p 80:80 nginx",{"type":20,"tag":37,"props":366,"children":367},{},[368,373],{"type":20,"tag":59,"props":369,"children":370},{},[371],{"type":26,"value":372},"List running containers",{"type":20,"tag":59,"props":374,"children":375},{},[376],{"type":20,"tag":83,"props":377,"children":379},{"className":378},[],[380],{"type":26,"value":381},"docker ps",{"type":20,"tag":37,"props":383,"children":384},{},[385,390],{"type":20,"tag":59,"props":386,"children":387},{},[388],{"type":26,"value":389},"Stop a container",{"type":20,"tag":59,"props":391,"children":392},{},[393],{"type":20,"tag":83,"props":394,"children":396},{"className":395},[],[397],{"type":26,"value":398},"docker stop \u003Ccontainer_id>",{"type":20,"tag":37,"props":400,"children":401},{},[402,407],{"type":20,"tag":59,"props":403,"children":404},{},[405],{"type":26,"value":406},"Remove a container",{"type":20,"tag":59,"props":408,"children":409},{},[410],{"type":20,"tag":83,"props":411,"children":413},{"className":412},[],[414],{"type":26,"value":415},"docker rm \u003Ccontainer_id>",{"type":20,"tag":37,"props":417,"children":418},{},[419,424],{"type":20,"tag":59,"props":420,"children":421},{},[422],{"type":26,"value":423},"View container logs",{"type":20,"tag":59,"props":425,"children":426},{},[427],{"type":20,"tag":83,"props":428,"children":430},{"className":429},[],[431],{"type":26,"value":432},"docker logs \u003Ccontainer_id>",{"type":20,"tag":319,"props":434,"children":435},{},[],{"type":20,"tag":21,"props":437,"children":439},{"id":438},"docker-volumes",[440],{"type":26,"value":441},"Docker Volumes",{"type":20,"tag":29,"props":443,"children":444},{},[445,459],{"type":20,"tag":33,"props":446,"children":447},{},[448],{"type":20,"tag":37,"props":449,"children":450},{},[451,455],{"type":20,"tag":41,"props":452,"children":453},{},[454],{"type":26,"value":45},{"type":20,"tag":41,"props":456,"children":457},{},[458],{"type":26,"value":50},{"type":20,"tag":52,"props":460,"children":461},{},[462,479,496,513],{"type":20,"tag":37,"props":463,"children":464},{},[465,474],{"type":20,"tag":59,"props":466,"children":467},{},[468],{"type":20,"tag":83,"props":469,"children":471},{"className":470},[],[472],{"type":26,"value":473},"docker volume create",{"type":20,"tag":59,"props":475,"children":476},{},[477],{"type":26,"value":478},"Create a volume",{"type":20,"tag":37,"props":480,"children":481},{},[482,491],{"type":20,"tag":59,"props":483,"children":484},{},[485],{"type":20,"tag":83,"props":486,"children":488},{"className":487},[],[489],{"type":26,"value":490},"docker volume ls",{"type":20,"tag":59,"props":492,"children":493},{},[494],{"type":26,"value":495},"List volumes",{"type":20,"tag":37,"props":497,"children":498},{},[499,508],{"type":20,"tag":59,"props":500,"children":501},{},[502],{"type":20,"tag":83,"props":503,"children":505},{"className":504},[],[506],{"type":26,"value":507},"docker volume rm",{"type":20,"tag":59,"props":509,"children":510},{},[511],{"type":26,"value":512},"Remove a volume",{"type":20,"tag":37,"props":514,"children":515},{},[516,525],{"type":20,"tag":59,"props":517,"children":518},{},[519],{"type":20,"tag":83,"props":520,"children":522},{"className":521},[],[523],{"type":26,"value":524},"docker run -v",{"type":20,"tag":59,"props":526,"children":527},{},[528],{"type":26,"value":529},"Mount a volume to a container",{"type":20,"tag":319,"props":531,"children":532},{},[],{"type":20,"tag":21,"props":534,"children":536},{"id":535},"docker-networks",[537],{"type":26,"value":538},"Docker Networks",{"type":20,"tag":29,"props":540,"children":541},{},[542,556],{"type":20,"tag":33,"props":543,"children":544},{},[545],{"type":20,"tag":37,"props":546,"children":547},{},[548,552],{"type":20,"tag":41,"props":549,"children":550},{},[551],{"type":26,"value":45},{"type":20,"tag":41,"props":553,"children":554},{},[555],{"type":26,"value":50},{"type":20,"tag":52,"props":557,"children":558},{},[559,576,593,610],{"type":20,"tag":37,"props":560,"children":561},{},[562,567],{"type":20,"tag":59,"props":563,"children":564},{},[565],{"type":26,"value":566},"Create a network",{"type":20,"tag":59,"props":568,"children":569},{},[570],{"type":20,"tag":83,"props":571,"children":573},{"className":572},[],[574],{"type":26,"value":575},"docker network create mynetwork",{"type":20,"tag":37,"props":577,"children":578},{},[579,584],{"type":20,"tag":59,"props":580,"children":581},{},[582],{"type":26,"value":583},"List networks",{"type":20,"tag":59,"props":585,"children":586},{},[587],{"type":20,"tag":83,"props":588,"children":590},{"className":589},[],[591],{"type":26,"value":592},"docker network ls",{"type":20,"tag":37,"props":594,"children":595},{},[596,601],{"type":20,"tag":59,"props":597,"children":598},{},[599],{"type":26,"value":600},"Remove a network",{"type":20,"tag":59,"props":602,"children":603},{},[604],{"type":20,"tag":83,"props":605,"children":607},{"className":606},[],[608],{"type":26,"value":609},"docker network rm mynetwork",{"type":20,"tag":37,"props":611,"children":612},{},[613,618],{"type":20,"tag":59,"props":614,"children":615},{},[616],{"type":26,"value":617},"Connect a container to a network",{"type":20,"tag":59,"props":619,"children":620},{},[621],{"type":20,"tag":83,"props":622,"children":624},{"className":623},[],[625],{"type":26,"value":626},"docker run --network mynetwork nginx",{"type":20,"tag":319,"props":628,"children":629},{},[],{"type":20,"tag":21,"props":631,"children":633},{"id":632},"docker-compose",[634],{"type":26,"value":635},"Docker Compose",{"type":20,"tag":29,"props":637,"children":638},{},[639,653],{"type":20,"tag":33,"props":640,"children":641},{},[642],{"type":20,"tag":37,"props":643,"children":644},{},[645,649],{"type":20,"tag":41,"props":646,"children":647},{},[648],{"type":26,"value":45},{"type":20,"tag":41,"props":650,"children":651},{},[652],{"type":26,"value":50},{"type":20,"tag":52,"props":654,"children":655},{},[656,670,687,704,721,738,755,769,786,803,820,837,851,868,885,902,919,936,950,967,984,1001],{"type":20,"tag":37,"props":657,"children":658},{},[659,667],{"type":20,"tag":59,"props":660,"children":661},{},[662],{"type":20,"tag":63,"props":663,"children":664},{},[665],{"type":26,"value":666},"Lifecycle Commands",{"type":20,"tag":59,"props":668,"children":669},{},[],{"type":20,"tag":37,"props":671,"children":672},{},[673,678],{"type":20,"tag":59,"props":674,"children":675},{},[676],{"type":26,"value":677},"Start services defined in docker-compose.yml",{"type":20,"tag":59,"props":679,"children":680},{},[681],{"type":20,"tag":83,"props":682,"children":684},{"className":683},[],[685],{"type":26,"value":686},"docker compose up",{"type":20,"tag":37,"props":688,"children":689},{},[690,695],{"type":20,"tag":59,"props":691,"children":692},{},[693],{"type":26,"value":694},"Stop and remove containers, networks, volumes",{"type":20,"tag":59,"props":696,"children":697},{},[698],{"type":20,"tag":83,"props":699,"children":701},{"className":700},[],[702],{"type":26,"value":703},"docker compose down",{"type":20,"tag":37,"props":705,"children":706},{},[707,712],{"type":20,"tag":59,"props":708,"children":709},{},[710],{"type":26,"value":711},"Stop services",{"type":20,"tag":59,"props":713,"children":714},{},[715],{"type":20,"tag":83,"props":716,"children":718},{"className":717},[],[719],{"type":26,"value":720},"docker compose stop",{"type":20,"tag":37,"props":722,"children":723},{},[724,729],{"type":20,"tag":59,"props":725,"children":726},{},[727],{"type":26,"value":728},"Start services",{"type":20,"tag":59,"props":730,"children":731},{},[732],{"type":20,"tag":83,"props":733,"children":735},{"className":734},[],[736],{"type":26,"value":737},"docker compose start",{"type":20,"tag":37,"props":739,"children":740},{},[741,746],{"type":20,"tag":59,"props":742,"children":743},{},[744],{"type":26,"value":745},"Restart services",{"type":20,"tag":59,"props":747,"children":748},{},[749],{"type":20,"tag":83,"props":750,"children":752},{"className":751},[],[753],{"type":26,"value":754},"docker compose restart",{"type":20,"tag":37,"props":756,"children":757},{},[758,766],{"type":20,"tag":59,"props":759,"children":760},{},[761],{"type":20,"tag":63,"props":762,"children":763},{},[764],{"type":26,"value":765},"Image & Container Management Commands",{"type":20,"tag":59,"props":767,"children":768},{},[],{"type":20,"tag":37,"props":770,"children":771},{},[772,777],{"type":20,"tag":59,"props":773,"children":774},{},[775],{"type":26,"value":776},"Build or rebuild services",{"type":20,"tag":59,"props":778,"children":779},{},[780],{"type":20,"tag":83,"props":781,"children":783},{"className":782},[],[784],{"type":26,"value":785},"docker compose build",{"type":20,"tag":37,"props":787,"children":788},{},[789,794],{"type":20,"tag":59,"props":790,"children":791},{},[792],{"type":26,"value":793},"Pull service images",{"type":20,"tag":59,"props":795,"children":796},{},[797],{"type":20,"tag":83,"props":798,"children":800},{"className":799},[],[801],{"type":26,"value":802},"docker compose pull",{"type":20,"tag":37,"props":804,"children":805},{},[806,811],{"type":20,"tag":59,"props":807,"children":808},{},[809],{"type":26,"value":810},"Push service images",{"type":20,"tag":59,"props":812,"children":813},{},[814],{"type":20,"tag":83,"props":815,"children":817},{"className":816},[],[818],{"type":26,"value":819},"docker compose push",{"type":20,"tag":37,"props":821,"children":822},{},[823,828],{"type":20,"tag":59,"props":824,"children":825},{},[826],{"type":26,"value":827},"Remove stopped service containers",{"type":20,"tag":59,"props":829,"children":830},{},[831],{"type":20,"tag":83,"props":832,"children":834},{"className":833},[],[835],{"type":26,"value":836},"docker compose rm",{"type":20,"tag":37,"props":838,"children":839},{},[840,848],{"type":20,"tag":59,"props":841,"children":842},{},[843],{"type":20,"tag":63,"props":844,"children":845},{},[846],{"type":26,"value":847},"Logging, Execution, and Scaling Commands",{"type":20,"tag":59,"props":849,"children":850},{},[],{"type":20,"tag":37,"props":852,"children":853},{},[854,859],{"type":20,"tag":59,"props":855,"children":856},{},[857],{"type":26,"value":858},"List containers",{"type":20,"tag":59,"props":860,"children":861},{},[862],{"type":20,"tag":83,"props":863,"children":865},{"className":864},[],[866],{"type":26,"value":867},"docker compose ps",{"type":20,"tag":37,"props":869,"children":870},{},[871,876],{"type":20,"tag":59,"props":872,"children":873},{},[874],{"type":26,"value":875},"View output from containers",{"type":20,"tag":59,"props":877,"children":878},{},[879],{"type":20,"tag":83,"props":880,"children":882},{"className":881},[],[883],{"type":26,"value":884},"docker compose logs",{"type":20,"tag":37,"props":886,"children":887},{},[888,893],{"type":20,"tag":59,"props":889,"children":890},{},[891],{"type":26,"value":892},"Execute a command in a running container",{"type":20,"tag":59,"props":894,"children":895},{},[896],{"type":20,"tag":83,"props":897,"children":899},{"className":898},[],[900],{"type":26,"value":901},"docker compose exec web ls -l",{"type":20,"tag":37,"props":903,"children":904},{},[905,910],{"type":20,"tag":59,"props":906,"children":907},{},[908],{"type":26,"value":909},"Execute a command in an interactive shell",{"type":20,"tag":59,"props":911,"children":912},{},[913],{"type":20,"tag":83,"props":914,"children":916},{"className":915},[],[917],{"type":26,"value":918},"docker compose exec -it bash",{"type":20,"tag":37,"props":920,"children":921},{},[922,927],{"type":20,"tag":59,"props":923,"children":924},{},[925],{"type":26,"value":926},"Scale a service",{"type":20,"tag":59,"props":928,"children":929},{},[930],{"type":20,"tag":83,"props":931,"children":933},{"className":932},[],[934],{"type":26,"value":935},"docker compose scale web=3",{"type":20,"tag":37,"props":937,"children":938},{},[939,947],{"type":20,"tag":59,"props":940,"children":941},{},[942],{"type":20,"tag":63,"props":943,"children":944},{},[945],{"type":26,"value":946},"Configuration and Help Commands",{"type":20,"tag":59,"props":948,"children":949},{},[],{"type":20,"tag":37,"props":951,"children":952},{},[953,958],{"type":20,"tag":59,"props":954,"children":955},{},[956],{"type":26,"value":957},"Get help on a command",{"type":20,"tag":59,"props":959,"children":960},{},[961],{"type":20,"tag":83,"props":962,"children":964},{"className":963},[],[965],{"type":26,"value":966},"docker compose help up",{"type":20,"tag":37,"props":968,"children":969},{},[970,975],{"type":20,"tag":59,"props":971,"children":972},{},[973],{"type":26,"value":974},"Show the Docker Compose version information",{"type":20,"tag":59,"props":976,"children":977},{},[978],{"type":20,"tag":83,"props":979,"children":981},{"className":980},[],[982],{"type":26,"value":983},"docker compose version",{"type":20,"tag":37,"props":985,"children":986},{},[987,992],{"type":20,"tag":59,"props":988,"children":989},{},[990],{"type":26,"value":991},"Validate and view the compose file",{"type":20,"tag":59,"props":993,"children":994},{},[995],{"type":20,"tag":83,"props":996,"children":998},{"className":997},[],[999],{"type":26,"value":1000},"docker compose config",{"type":20,"tag":37,"props":1002,"children":1003},{},[1004,1009],{"type":20,"tag":59,"props":1005,"children":1006},{},[1007],{"type":26,"value":1008},"Run a one-off command on a service",{"type":20,"tag":59,"props":1010,"children":1011},{},[1012],{"type":20,"tag":83,"props":1013,"children":1015},{"className":1014},[],[1016],{"type":26,"value":1017},"docker compose run web python manage.py migrate",{"type":20,"tag":319,"props":1019,"children":1020},{},[],{"type":20,"tag":21,"props":1022,"children":1024},{"id":1023},"docker-swarm",[1025],{"type":26,"value":1026},"Docker Swarm",{"type":20,"tag":29,"props":1028,"children":1029},{},[1030,1044],{"type":20,"tag":33,"props":1031,"children":1032},{},[1033],{"type":20,"tag":37,"props":1034,"children":1035},{},[1036,1040],{"type":20,"tag":41,"props":1037,"children":1038},{},[1039],{"type":26,"value":45},{"type":20,"tag":41,"props":1041,"children":1042},{},[1043],{"type":26,"value":50},{"type":20,"tag":52,"props":1045,"children":1046},{},[1047,1061,1078,1095,1112,1129,1146,1160,1177,1194,1211,1228,1245,1259,1276,1293],{"type":20,"tag":37,"props":1048,"children":1049},{},[1050,1058],{"type":20,"tag":59,"props":1051,"children":1052},{},[1053],{"type":20,"tag":63,"props":1054,"children":1055},{},[1056],{"type":26,"value":1057},"Swarm Management Commands",{"type":20,"tag":59,"props":1059,"children":1060},{},[],{"type":20,"tag":37,"props":1062,"children":1063},{},[1064,1069],{"type":20,"tag":59,"props":1065,"children":1066},{},[1067],{"type":26,"value":1068},"Initialize a swarm",{"type":20,"tag":59,"props":1070,"children":1071},{},[1072],{"type":20,"tag":83,"props":1073,"children":1075},{"className":1074},[],[1076],{"type":26,"value":1077},"docker swarm init",{"type":20,"tag":37,"props":1079,"children":1080},{},[1081,1086],{"type":20,"tag":59,"props":1082,"children":1083},{},[1084],{"type":26,"value":1085},"Join a swarm",{"type":20,"tag":59,"props":1087,"children":1088},{},[1089],{"type":20,"tag":83,"props":1090,"children":1092},{"className":1091},[],[1093],{"type":26,"value":1094},"docker swarm join --token \u003Ctoken>",{"type":20,"tag":37,"props":1096,"children":1097},{},[1098,1103],{"type":20,"tag":59,"props":1099,"children":1100},{},[1101],{"type":26,"value":1102},"Leave a swarm",{"type":20,"tag":59,"props":1104,"children":1105},{},[1106],{"type":20,"tag":83,"props":1107,"children":1109},{"className":1108},[],[1110],{"type":26,"value":1111},"docker swarm leave",{"type":20,"tag":37,"props":1113,"children":1114},{},[1115,1120],{"type":20,"tag":59,"props":1116,"children":1117},{},[1118],{"type":26,"value":1119},"Update swarm configuration",{"type":20,"tag":59,"props":1121,"children":1122},{},[1123],{"type":20,"tag":83,"props":1124,"children":1126},{"className":1125},[],[1127],{"type":26,"value":1128},"docker swarm update --task-history-limit 5",{"type":20,"tag":37,"props":1130,"children":1131},{},[1132,1137],{"type":20,"tag":59,"props":1133,"children":1134},{},[1135],{"type":26,"value":1136},"Display the join token for a swarm",{"type":20,"tag":59,"props":1138,"children":1139},{},[1140],{"type":20,"tag":83,"props":1141,"children":1143},{"className":1142},[],[1144],{"type":26,"value":1145},"docker swarm join-token worker",{"type":20,"tag":37,"props":1147,"children":1148},{},[1149,1157],{"type":20,"tag":59,"props":1150,"children":1151},{},[1152],{"type":20,"tag":63,"props":1153,"children":1154},{},[1155],{"type":26,"value":1156},"Service Management Commands",{"type":20,"tag":59,"props":1158,"children":1159},{},[],{"type":20,"tag":37,"props":1161,"children":1162},{},[1163,1168],{"type":20,"tag":59,"props":1164,"children":1165},{},[1166],{"type":26,"value":1167},"List swarm services",{"type":20,"tag":59,"props":1169,"children":1170},{},[1171],{"type":20,"tag":83,"props":1172,"children":1174},{"className":1173},[],[1175],{"type":26,"value":1176},"docker service ls",{"type":20,"tag":37,"props":1178,"children":1179},{},[1180,1185],{"type":20,"tag":59,"props":1181,"children":1182},{},[1183],{"type":26,"value":1184},"List tasks for a service",{"type":20,"tag":59,"props":1186,"children":1187},{},[1188],{"type":20,"tag":83,"props":1189,"children":1191},{"className":1190},[],[1192],{"type":26,"value":1193},"docker service ps \u003Cservice_name>",{"type":20,"tag":37,"props":1195,"children":1196},{},[1197,1202],{"type":20,"tag":59,"props":1198,"children":1199},{},[1200],{"type":26,"value":1201},"Create a new service",{"type":20,"tag":59,"props":1203,"children":1204},{},[1205],{"type":20,"tag":83,"props":1206,"children":1208},{"className":1207},[],[1209],{"type":26,"value":1210},"docker service create --name web nginx",{"type":20,"tag":37,"props":1212,"children":1213},{},[1214,1219],{"type":20,"tag":59,"props":1215,"children":1216},{},[1217],{"type":26,"value":1218},"Update a service",{"type":20,"tag":59,"props":1220,"children":1221},{},[1222],{"type":20,"tag":83,"props":1223,"children":1225},{"className":1224},[],[1226],{"type":26,"value":1227},"docker service update --replicas 3 web",{"type":20,"tag":37,"props":1229,"children":1230},{},[1231,1236],{"type":20,"tag":59,"props":1232,"children":1233},{},[1234],{"type":26,"value":1235},"Remove a service",{"type":20,"tag":59,"props":1237,"children":1238},{},[1239],{"type":20,"tag":83,"props":1240,"children":1242},{"className":1241},[],[1243],{"type":26,"value":1244},"docker service rm web",{"type":20,"tag":37,"props":1246,"children":1247},{},[1248,1256],{"type":20,"tag":59,"props":1249,"children":1250},{},[1251],{"type":20,"tag":63,"props":1252,"children":1253},{},[1254],{"type":26,"value":1255},"Node Management Commands",{"type":20,"tag":59,"props":1257,"children":1258},{},[],{"type":20,"tag":37,"props":1260,"children":1261},{},[1262,1267],{"type":20,"tag":59,"props":1263,"children":1264},{},[1265],{"type":26,"value":1266},"List swarm nodes",{"type":20,"tag":59,"props":1268,"children":1269},{},[1270],{"type":20,"tag":83,"props":1271,"children":1273},{"className":1272},[],[1274],{"type":26,"value":1275},"docker node ls",{"type":20,"tag":37,"props":1277,"children":1278},{},[1279,1284],{"type":20,"tag":59,"props":1280,"children":1281},{},[1282],{"type":26,"value":1283},"Update a node",{"type":20,"tag":59,"props":1285,"children":1286},{},[1287],{"type":20,"tag":83,"props":1288,"children":1290},{"className":1289},[],[1291],{"type":26,"value":1292},"docker node update --availability drain \u003Cnode_id>",{"type":20,"tag":37,"props":1294,"children":1295},{},[1296,1301],{"type":20,"tag":59,"props":1297,"children":1298},{},[1299],{"type":26,"value":1300},"Remove a node",{"type":20,"tag":59,"props":1302,"children":1303},{},[1304],{"type":20,"tag":83,"props":1305,"children":1307},{"className":1306},[],[1308],{"type":26,"value":1309},"docker node rm \u003Cnode_id>",{"type":20,"tag":319,"props":1311,"children":1312},{},[],{"type":20,"tag":21,"props":1314,"children":1316},{"id":1315},"additional-docker-commands",[1317],{"type":26,"value":1318},"Additional Docker Commands",{"type":20,"tag":1320,"props":1321,"children":1322},"p",{},[1323,1325,1334],{"type":26,"value":1324},"See the ",{"type":20,"tag":1326,"props":1327,"children":1331},"a",{"href":1328,"rel":1329},"https:\u002F\u002Fdocs.docker.com\u002Freference\u002Fcli\u002Fdocker\u002F",[1330],"nofollow",[1332],{"type":26,"value":1333},"Docker CLI Reference",{"type":26,"value":1335}," for a complete list of Docker commands and options.",{"type":20,"tag":1337,"props":1338,"children":1339},"ul",{},[1340,1350,1359,1368,1377,1386],{"type":20,"tag":1341,"props":1342,"children":1343},"li",{},[1344],{"type":20,"tag":1326,"props":1345,"children":1348},{"href":1346,"rel":1347},"https:\u002F\u002Fdocs.docker.com\u002Freference\u002Fcli\u002Fdocker\u002Fimage\u002F",[1330],[1349],{"type":26,"value":27},{"type":20,"tag":1341,"props":1351,"children":1352},{},[1353],{"type":20,"tag":1326,"props":1354,"children":1357},{"href":1355,"rel":1356},"https:\u002F\u002Fdocs.docker.com\u002Freference\u002Fcli\u002Fdocker\u002Fcontainer\u002F",[1330],[1358],{"type":26,"value":327},{"type":20,"tag":1341,"props":1360,"children":1361},{},[1362],{"type":20,"tag":1326,"props":1363,"children":1366},{"href":1364,"rel":1365},"https:\u002F\u002Fdocs.docker.com\u002Freference\u002Fcli\u002Fdocker\u002Fvolume\u002F",[1330],[1367],{"type":26,"value":441},{"type":20,"tag":1341,"props":1369,"children":1370},{},[1371],{"type":20,"tag":1326,"props":1372,"children":1375},{"href":1373,"rel":1374},"https:\u002F\u002Fdocs.docker.com\u002Freference\u002Fcli\u002Fdocker\u002Fnetwork\u002F",[1330],[1376],{"type":26,"value":538},{"type":20,"tag":1341,"props":1378,"children":1379},{},[1380],{"type":20,"tag":1326,"props":1381,"children":1384},{"href":1382,"rel":1383},"https:\u002F\u002Fdocs.docker.com\u002Freference\u002Fcli\u002Fdocker\u002Fcompose\u002F",[1330],[1385],{"type":26,"value":635},{"type":20,"tag":1341,"props":1387,"children":1388},{},[1389],{"type":20,"tag":1326,"props":1390,"children":1393},{"href":1391,"rel":1392},"https:\u002F\u002Fdocs.docker.com\u002Freference\u002Fcli\u002Fdocker\u002Fswarm\u002F",[1330],[1394],{"type":26,"value":1026},{"title":8,"searchDepth":1396,"depth":1396,"links":1397},3,[1398,1400,1401,1402,1403,1404,1405],{"id":23,"depth":1399,"text":27},2,{"id":324,"depth":1399,"text":327},{"id":438,"depth":1399,"text":441},{"id":535,"depth":1399,"text":538},{"id":632,"depth":1399,"text":635},{"id":1023,"depth":1399,"text":1026},{"id":1315,"depth":1399,"text":1318},"markdown","content:docker:cheat-sheets.md","content","docker\u002Fcheat-sheets.md","docker\u002Fcheat-sheets","md",[1413,1422,1427,1433,1442,1447,1452,1457,1462,1467,1473,1478,1483,1488,1493,1498,1506,1512,1519],{"_path":1414,"title":1415,"description":1416,"tags":1417,"date":1421},"\u002Fdata-structure-algorithm\u002Farray-manipulation\u002Ffor-looping","For Looping in Python","Using for loops to manipulate arrays in Python.",[1418,1419,1420],"python","backend","arrays","2026-03-18",{"_path":1423,"title":1424,"description":1425,"tags":1426,"date":1421},"\u002Fdata-structure-algorithm\u002Farray-manipulation\u002Fwhile-looping","While Looping in Python","Using while loops to manipulate arrays in Python.",[1418,1419,1420],{"_path":1428,"title":1429,"description":1430,"tags":1431,"date":1432},"\u002Fdata-structure-algorithm\u002Fassignments","Assignments","Assignments in Python for competitive programming.",[1418,1419],"2026-04-10",{"_path":1434,"title":1435,"description":1436,"tags":1437,"date":1441},"\u002Fdata-structure-algorithm\u002Fbuzzword","Buzzword List DSA","Common terms and concepts in data structures and algorithms.",[1438,1439,1440],"dsa","algorithms","data-structures","2026-04-03",{"_path":1443,"title":1444,"description":1445,"tags":1446,"date":1432},"\u002Fdata-structure-algorithm\u002Fdata-type","Data Types","Data types in Python for competitive programming.",[1418,1419],{"_path":1448,"title":1449,"description":1450,"tags":1451,"date":1432},"\u002Fdata-structure-algorithm\u002Fhash-map","Hash Map","Hash map implementation in Python for competitive programming.",[1418,1419],{"_path":1453,"title":1454,"description":1455,"tags":1456,"date":1432},"\u002Fdata-structure-algorithm\u002Finput-output","Input and Output","Handling input and output in Python for competitive programming.",[1418,1419],{"_path":1458,"title":1459,"description":1460,"tags":1461,"date":1421},"\u002Fdata-structure-algorithm\u002Fmath-library\u002Fsum","Sum Elements","Using for loops to sum elements in Python.",[1418,1419,1420],{"_path":1463,"title":1464,"description":1465,"tags":1466,"date":1421},"\u002Fdata-structure-algorithm\u002Fmath-library\u002Fsummary","Summary","Summary of the math library in Python.",[1418,1419,1420],{"_path":1468,"title":1469,"description":1470,"tags":1471,"date":1472},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-container","Docker Container","Introduction to Docker containers and their usage",[6,12,13],"2026-03-12",{"_path":1474,"title":1475,"description":1476,"tags":1477,"date":1472},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-execution","Docker Execution","Introduction to Docker execution and their usage",[6,12,13],{"_path":1479,"title":1480,"description":1481,"tags":1482,"date":1472},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-image","Docker Image","Introduction to Docker images and their usage",[6,12,13],{"_path":1484,"title":1485,"description":1486,"tags":1487,"date":1472},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-logging","Docker Logging","Introduction to Docker logging and their usage",[6,12,13],{"_path":1489,"title":1490,"description":1491,"tags":1492,"date":1472},"\u002Fdocker\u002Fdocker-prerequisites\u002Fdocker-installation","Docker Installation","Introduction to Docker installation and their usage",[6,12,13],{"_path":1494,"title":1495,"description":1496,"tags":1497,"date":1472},"\u002Fdocker\u002Fresources","Docker Resources","Collection of Docker resources for learning and reference",[6,12,13],{"_path":1499,"title":1500,"description":1501,"tags":1502,"date":1472},"\u002Fjavascript\u002Fpromises","Promise Patterns","Common JavaScript promise patterns and async\u002Fawait usage",[1503,1504,1505],"javascript","frontend","async",{"_path":1507,"title":1508,"description":1509,"tags":1510,"date":1421},"\u002Fphp\u002Farrays","PHP Array Functions","Essential PHP array functions and patterns",[1511,1419,1420],"php",{"_path":1513,"title":1514,"description":1515,"tags":1516,"date":1518},"\u002Fphp\u002Fpatterns\u002Fsingleton","Singleton Pattern","Implementing the singleton pattern in PHP",[1511,1517,1419],"patterns","2026-03-13",{"_path":1520,"title":1521,"description":1522,"tags":1523,"date":1524},"\u002Fphp\u002Freferences","PHP References (&)","Useful PHP reference snippets and patterns",[1511,1419],"2026-03-19",[1526,1528,1529,1530,1532,1533,1534,1535,1537,1538,1539,1540,1542,1544,1546,1547,1548,1549,1550,1551],{"_path":1414,"title":1415,"weight":1527},10,{"_path":1423,"title":1424,"weight":1527},{"_path":1428,"title":1429,"weight":1396},{"_path":1434,"title":1435,"weight":1531},1,{"_path":1443,"title":1444,"weight":1399},{"_path":1448,"title":1449,"weight":1527},{"_path":1453,"title":1454,"weight":1531},{"_path":1458,"title":1459,"weight":1536},20,{"_path":1463,"title":1464,"weight":1527},{"_path":5,"title":9,"weight":15},{"_path":1468,"title":1469,"weight":1536},{"_path":1474,"title":1475,"weight":1541},22,{"_path":1479,"title":1480,"weight":1543},21,{"_path":1484,"title":1485,"weight":1545},23,{"_path":1489,"title":1490,"weight":1527},{"_path":1494,"title":1495,"weight":1531},{"_path":1499,"title":1500},{"_path":1507,"title":1508,"weight":1531},{"_path":1513,"title":1514},{"_path":1520,"title":1521,"weight":1399},1777825382490]