{"id":784,"date":"2024-06-26T08:00:00","date_gmt":"2024-06-26T06:00:00","guid":{"rendered":"https:\/\/procyb.fr\/?p=784"},"modified":"2024-06-24T17:50:44","modified_gmt":"2024-06-24T15:50:44","slug":"commandes-utiles-pour-docker","status":"publish","type":"post","link":"https:\/\/procyb.fr\/index.php\/2024\/06\/26\/commandes-utiles-pour-docker\/","title":{"rendered":"Commandes utiles pour Docker"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-main-color\">#d\u00e9marre container depuis une image<\/mark>\ndocker run &lt;nom_image> \n\n<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-main-color\">#t\u00e9l\u00e9charge une image<\/mark>\ndocker pull &lt;nom_image> \n\n<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-main-color\">#efface une image<\/mark>\ndocker rmi &lt;nom_image> \n\ndocker run \u2014name &lt;nom_container> &lt;nom_image>\n\n<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-main-color\">#map un port<\/mark>\ndocker run -p HostPort:ContainerPort \n<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-main-color\">\n#d\u00e9marre un container en background<\/mark>\ndocker run -d &lt;nom_image> \n\n<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-main-color\">#liste les containers lanc\u00e9s<\/mark>\ndocker container ls \n\n<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-main-color\">#liste tous les containers<\/mark>\ndocker container ls \u2014all \n\ndocker start &lt;nom_container>\ndocker stop &lt;nom_container>\ndocker restart &lt;nom_container>\ndocker kill &lt;nom_container>\n\n<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-main-color\">#contr\u00f4ler le container avec notre ligne de commande<\/mark>\ndocker attach &lt;nom_container> \n\n<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-main-color\">#efface le container<\/mark>\ndocker rm &lt;nom_container> <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Commandes utiles pour Docker <span class=\"more-tag mt-15 is-style-arrow\"><a class=\"more-link wp-block-button__link\" href=\"https:\/\/procyb.fr\/index.php\/2024\/06\/26\/commandes-utiles-pour-docker\/\">...<span class=\"screen-reader-text\"> \"Commandes utiles pour Docker\"<\/span><\/a><\/span><!-- .more-tag --><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[22],"tags":[32,24],"class_list":["post-784","post","type-post","status-publish","format-standard","hentry","category-docker","tag-bash","tag-docker","no-post-thumbnail"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/procyb.fr\/index.php\/wp-json\/wp\/v2\/posts\/784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/procyb.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/procyb.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/procyb.fr\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/procyb.fr\/index.php\/wp-json\/wp\/v2\/comments?post=784"}],"version-history":[{"count":3,"href":"https:\/\/procyb.fr\/index.php\/wp-json\/wp\/v2\/posts\/784\/revisions"}],"predecessor-version":[{"id":787,"href":"https:\/\/procyb.fr\/index.php\/wp-json\/wp\/v2\/posts\/784\/revisions\/787"}],"wp:attachment":[{"href":"https:\/\/procyb.fr\/index.php\/wp-json\/wp\/v2\/media?parent=784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/procyb.fr\/index.php\/wp-json\/wp\/v2\/categories?post=784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/procyb.fr\/index.php\/wp-json\/wp\/v2\/tags?post=784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}