{"id":20,"date":"2023-10-16T20:38:28","date_gmt":"2023-10-16T12:38:28","guid":{"rendered":"https:\/\/course.ddftnt.top\/?p=20"},"modified":"2023-10-16T20:45:54","modified_gmt":"2023-10-16T12:45:54","slug":"linux-useful-software","status":"publish","type":"post","link":"https:\/\/course.lostgrace.top\/?p=20","title":{"rendered":"Linux Useful Software"},"content":{"rendered":"<h1>Docker<\/h1>\n<h2>Command List<\/h2>\n<ol>\n<li><code>docker pull<\/code><\/li>\n<li><code>docker run<\/code><\/li>\n<li><code>docker images<\/code><\/li>\n<li><code>docker ps<\/code><\/li>\n<li><code>docker rmi<\/code><\/li>\n<li><code>docker rm<\/code><\/li>\n<li><code>docker exec<\/code><\/li>\n<li><code>docker commit<\/code><\/li>\n<li><code>docker export\/import<\/code><\/li>\n<li><code>docker save\/load<\/code><\/li>\n<li><code>docker build<\/code><\/li>\n<\/ol>\n<h2>Commonly Used Commands<\/h2>\n<ol>\n<li><code>docker run<\/code><\/li>\n<\/ol>\n<pre><code>docker run\n    --name &lt;container name&gt; -d\n    -p &lt;physical port&gt;:&lt;container port&gt;\n    -v &lt;physical volume&gt;:&lt;container volume&gt;\n    -e &lt;environment variable&gt;=&lt;value&gt;\n    &lt;image name&gt;<\/code><\/pre>\n<ol start=\"2\">\n<li><code>docker ps -a<\/code><\/li>\n<li><code>docker exec -it &lt;container name&gt; \/bin\/bash<\/code><\/li>\n<\/ol>\n<h2>Dockerfile<\/h2>\n<ol>\n<li><code>FROM<\/code><\/li>\n<li><code>LABEL<\/code><\/li>\n<li><code>USER<\/code><\/li>\n<li><code>RUN<\/code><\/li>\n<li><code>EXPOSE<\/code><\/li>\n<li><code>ENV<\/code><\/li>\n<li><code>ADD<\/code>\/<code>COPY<\/code><\/li>\n<li><code>CMD<\/code>\/<code>ENTRYPOINT<\/code><\/li>\n<\/ol>\n<h2>Useful Links<\/h2>\n<p><a href=\"https:\/\/www.runoob.com\/docker\/docker-tutorial.html\">https:\/\/www.runoob.com\/docker\/docker-tutorial.html<\/a><\/p>\n<h1>Git<\/h1>\n<h2>Installation<\/h2>\n<p>Software name: <code>git<\/code><br \/>\nCan be installed by <code>apt<\/code> or <code>yum<\/code><\/p>\n<h2>Command List<\/h2>\n<ol>\n<li><code>git config<\/code><\/li>\n<li><code>git init<\/code><\/li>\n<li><code>git clone<\/code><\/li>\n<li><code>git add<\/code><\/li>\n<li><code>git commit<\/code><\/li>\n<li><code>git push<\/code><\/li>\n<li><code>git log<\/code><\/li>\n<li><code>git remote<\/code><\/li>\n<li><code>git branch<\/code><\/li>\n<li><code>git checkout<\/code><\/li>\n<li><code>git merge<\/code><\/li>\n<li><code>git rebase<\/code><\/li>\n<\/ol>\n<h2>Useful Links<\/h2>\n<p><a href=\"https:\/\/www.runoob.com\/git\/git-tutorial.html\">https:\/\/www.runoob.com\/git\/git-tutorial.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker Command List docker pull docker run docker image &hellip; <a href=\"https:\/\/course.lostgrace.top\/?p=20\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">Linux Useful Software<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/course.lostgrace.top\/index.php?rest_route=\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/course.lostgrace.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/course.lostgrace.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/course.lostgrace.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/course.lostgrace.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20"}],"version-history":[{"count":6,"href":"https:\/\/course.lostgrace.top\/index.php?rest_route=\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":26,"href":"https:\/\/course.lostgrace.top\/index.php?rest_route=\/wp\/v2\/posts\/20\/revisions\/26"}],"wp:attachment":[{"href":"https:\/\/course.lostgrace.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/course.lostgrace.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/course.lostgrace.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}