﻿{"id":3185,"date":"2017-05-27T12:30:13","date_gmt":"2017-05-27T11:30:13","guid":{"rendered":"https:\/\/dahoo.fr\/wordpress\/?p=3185"},"modified":"2017-06-08T20:16:53","modified_gmt":"2017-06-08T19:16:53","slug":"docker-commandes-utiles","status":"publish","type":"post","link":"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/","title":{"rendered":"Docker : Commandes utiles"},"content":{"rendered":"<p>Vous aimez docker, vous avez besoin d&rsquo;une aide m\u00e9moire pour les commandes, vous ne savez tout simplement pas faire les commandes alors voici une liste non exhaustive des commandes dockers.<\/p>\n<p><!--more--><\/p>\n<p><strong>Pour r\u00e9cup\u00e9rer une image sans la lancer\u00a0<\/strong><\/p>\n<blockquote><p>docker pull [mon image]<\/p><\/blockquote>\n<p><span style=\"color: #0000ff;\">Exemple : docker pull hello-world<\/span><\/p>\n<hr \/>\n<p><strong>Pour lister les images pr\u00e9sentes sur la machine<\/strong><\/p>\n<blockquote><p>docker images<\/p><\/blockquote>\n<hr \/>\n<p><strong>Pour d\u00e9marrer un container<\/strong><\/p>\n<blockquote><p>docker run [mon image]<\/p><\/blockquote>\n<p><span style=\"color: #0000ff;\">Exemple : docker run\u00a0hello-world<\/span><\/p>\n<hr \/>\n<p><strong>Pour d\u00e9marrer un container en \u00ab\u00a0interativ\u00a0\u00bb<\/strong><\/p>\n<blockquote><p>docker run -i -t [mon image]<\/p><\/blockquote>\n<hr \/>\n<p><strong>Lister les conteneur en cours<\/strong><\/p>\n<blockquote><p>docker ps<\/p><\/blockquote>\n<hr \/>\n<p><strong>Lister tout les conteneurs (y compris ceux\u00a0\u00e9teint)<\/strong><\/p>\n<blockquote><p>docker ps -a<\/p><\/blockquote>\n<hr \/>\n<p><strong>Supprimer un conteneur arret\u00e9<\/strong><\/p>\n<blockquote><p>docker rm [id du conteneur ou tag du conteneur]<\/p><\/blockquote>\n<hr \/>\n<p><strong>D\u00e9marrer un conteneur<\/strong><\/p>\n<blockquote><p>docker start [id conteneur]<\/p><\/blockquote>\n<hr \/>\n<p><b>Arr\u00eater<\/b><strong>\u00a0 un conteneur<\/strong><\/p>\n<blockquote><p>docker stop [id conteneur]<\/p><\/blockquote>\n<hr \/>\n<p><b>Red\u00e9marrer<\/b><strong>\u00a0un conteneur<\/strong><\/p>\n<blockquote><p>docker restat [id coneneur]<\/p><\/blockquote>\n<hr \/>\n<p><strong>Lancer en arri\u00e9r\u00e9\u00a0plan un docker<\/strong><\/p>\n<blockquote><p>docker run -d [mon image]<\/p><\/blockquote>\n<hr \/>\n<p><strong>Lister les modifications d\u2019un conteneur par rapport \u00e0 son image de cr\u00e9ation<\/strong><\/p>\n<blockquote><p>docker diff [id du conteneur]<\/p><\/blockquote>\n<hr \/>\n<p><strong>Supprimer une image<\/strong><\/p>\n<blockquote><p>docker rmi [nom de l\u2019image]<\/p><\/blockquote>\n<hr \/>\n<p><strong>Cr\u00e9er une image \u00e0 partir d\u2019un conteneur<\/strong><\/p>\n<blockquote><p>docker commit [id du conteneur] [nom de l\u2019image]<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vous aimez docker, vous avez besoin d&rsquo;une aide m\u00e9moire pour les commandes, vous ne savez tout simplement pas faire les commandes alors voici une liste non exhaustive des commandes dockers.<\/p>\n","protected":false},"author":1,"featured_media":3186,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"footnotes":""},"categories":[396],"tags":[401,397,403,402],"class_list":["post-3185","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-docker","tag-commande","tag-docker","tag-exemple","tag-memo","post_format-post-format-image"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Docker : Commandes utiles - D@hoo<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker : Commandes utiles - D@hoo\" \/>\n<meta property=\"og:description\" content=\"Vous aimez docker, vous avez besoin d&rsquo;une aide m\u00e9moire pour les commandes, vous ne savez tout simplement pas faire les commandes alors voici une liste non exhaustive des commandes dockers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/\" \/>\n<meta property=\"og:site_name\" content=\"D@hoo\" \/>\n<meta property=\"article:published_time\" content=\"2017-05-27T11:30:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-06-08T19:16:53+00:00\" \/>\n<meta name=\"author\" content=\"Fabacks\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fabacks\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/\"},\"author\":{\"name\":\"Fabacks\",\"@id\":\"https:\/\/dahoo.fr\/wordpress\/#\/schema\/person\/08ab6e7b6f186b7e033fe862d72137d2\"},\"headline\":\"Docker : Commandes utiles\",\"datePublished\":\"2017-05-27T11:30:13+00:00\",\"dateModified\":\"2017-06-08T19:16:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/\"},\"wordCount\":201,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2017\/05\/docker.svg\",\"keywords\":[\"commande\",\"docker\",\"exemple\",\"memo\"],\"articleSection\":[\"Docker\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/\",\"url\":\"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/\",\"name\":\"Docker : Commandes utiles - D@hoo\",\"isPartOf\":{\"@id\":\"https:\/\/dahoo.fr\/wordpress\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2017\/05\/docker.svg\",\"datePublished\":\"2017-05-27T11:30:13+00:00\",\"dateModified\":\"2017-06-08T19:16:53+00:00\",\"author\":{\"@id\":\"https:\/\/dahoo.fr\/wordpress\/#\/schema\/person\/08ab6e7b6f186b7e033fe862d72137d2\"},\"breadcrumb\":{\"@id\":\"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/#primaryimage\",\"url\":\"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2017\/05\/docker.svg\",\"contentUrl\":\"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2017\/05\/docker.svg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/dahoo.fr\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docker : Commandes utiles\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dahoo.fr\/wordpress\/#website\",\"url\":\"https:\/\/dahoo.fr\/wordpress\/\",\"name\":\"D@hoo\",\"description\":\"Dahoo, la taverne du geek\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dahoo.fr\/wordpress\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/dahoo.fr\/wordpress\/#\/schema\/person\/08ab6e7b6f186b7e033fe862d72137d2\",\"name\":\"Fabacks\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/dahoo.fr\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5774810a4a71ec90d75c578017954d3e8d660747be025fdae4d44599410b4806?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5774810a4a71ec90d75c578017954d3e8d660747be025fdae4d44599410b4806?s=96&r=g\",\"caption\":\"Fabacks\"},\"description\":\"Fabacks, fondateur du projet Dahoo proposant des news, des tutos, des tests tout cela gratuitement. Un bidouilleur et fan d'informatique en tout genre qui vous fera partager ses exp\u00e9riences.\",\"sameAs\":[\"http:\/\/dahoo.fr\"],\"url\":\"https:\/\/dahoo.fr\/wordpress\/author\/fabien\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Docker : Commandes utiles - D@hoo","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/","og_locale":"fr_FR","og_type":"article","og_title":"Docker : Commandes utiles - D@hoo","og_description":"Vous aimez docker, vous avez besoin d&rsquo;une aide m\u00e9moire pour les commandes, vous ne savez tout simplement pas faire les commandes alors voici une liste non exhaustive des commandes dockers.","og_url":"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/","og_site_name":"D@hoo","article_published_time":"2017-05-27T11:30:13+00:00","article_modified_time":"2017-06-08T19:16:53+00:00","author":"Fabacks","twitter_misc":{"\u00c9crit par":"Fabacks","Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/#article","isPartOf":{"@id":"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/"},"author":{"name":"Fabacks","@id":"https:\/\/dahoo.fr\/wordpress\/#\/schema\/person\/08ab6e7b6f186b7e033fe862d72137d2"},"headline":"Docker : Commandes utiles","datePublished":"2017-05-27T11:30:13+00:00","dateModified":"2017-06-08T19:16:53+00:00","mainEntityOfPage":{"@id":"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/"},"wordCount":201,"commentCount":0,"image":{"@id":"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/#primaryimage"},"thumbnailUrl":"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2017\/05\/docker.svg","keywords":["commande","docker","exemple","memo"],"articleSection":["Docker"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/","url":"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/","name":"Docker : Commandes utiles - D@hoo","isPartOf":{"@id":"https:\/\/dahoo.fr\/wordpress\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/#primaryimage"},"image":{"@id":"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/#primaryimage"},"thumbnailUrl":"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2017\/05\/docker.svg","datePublished":"2017-05-27T11:30:13+00:00","dateModified":"2017-06-08T19:16:53+00:00","author":{"@id":"https:\/\/dahoo.fr\/wordpress\/#\/schema\/person\/08ab6e7b6f186b7e033fe862d72137d2"},"breadcrumb":{"@id":"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/#primaryimage","url":"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2017\/05\/docker.svg","contentUrl":"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2017\/05\/docker.svg"},{"@type":"BreadcrumbList","@id":"https:\/\/dahoo.fr\/wordpress\/docker-commandes-utiles\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/dahoo.fr\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Docker : Commandes utiles"}]},{"@type":"WebSite","@id":"https:\/\/dahoo.fr\/wordpress\/#website","url":"https:\/\/dahoo.fr\/wordpress\/","name":"D@hoo","description":"Dahoo, la taverne du geek","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dahoo.fr\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Person","@id":"https:\/\/dahoo.fr\/wordpress\/#\/schema\/person\/08ab6e7b6f186b7e033fe862d72137d2","name":"Fabacks","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/dahoo.fr\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5774810a4a71ec90d75c578017954d3e8d660747be025fdae4d44599410b4806?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5774810a4a71ec90d75c578017954d3e8d660747be025fdae4d44599410b4806?s=96&r=g","caption":"Fabacks"},"description":"Fabacks, fondateur du projet Dahoo proposant des news, des tutos, des tests tout cela gratuitement. Un bidouilleur et fan d'informatique en tout genre qui vous fera partager ses exp\u00e9riences.","sameAs":["http:\/\/dahoo.fr"],"url":"https:\/\/dahoo.fr\/wordpress\/author\/fabien\/"}]}},"jetpack_featured_media_url":"https:\/\/dahoo.fr\/wordpress\/wp-content\/uploads\/2017\/05\/docker.svg","_links":{"self":[{"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/posts\/3185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/comments?post=3185"}],"version-history":[{"count":0,"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/posts\/3185\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/media\/3186"}],"wp:attachment":[{"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/media?parent=3185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/categories?post=3185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dahoo.fr\/wordpress\/wp-json\/wp\/v2\/tags?post=3185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}