{"id":45326,"date":"2024-01-15T08:48:00","date_gmt":"2023-11-08T19:18:27","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/45326-2\/"},"modified":"2024-05-04T18:30:24","modified_gmt":"2024-05-04T10:30:24","slug":"45326-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/45326-2\/","title":{"rendered":""},"content":{"rendered":"<h1>Software Design\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0<\/h1>\n<p>twitter\u3067Software Design3\u6708\u53f7\u304c\u8a71\u984c\u306b\u306a\u3063\u3066\u3044\u305f\u3002<br \/>\n\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306e\u7279\u96c6\u3060\u3063\u305f\u3002<\/p>\n<p>\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u7279\u96c6\u3068\u306f\u5225\u3067\u3001Rust\u3092\u3064\u304b\u3063\u305f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u8a18\u4e8b\u304c\u3042\u3063\u305f\u3002<br \/>\n\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b\u306e\u306f\u300c\u96fb\u6c17\u3072\u3064\u3058 (teru0x1) \u00b7 Twitter\u300d\u69d8\u3067\u3059\u3002<br \/>\n\u96fb\u5b50\u66f8\u7c4d\u3082\u51fa\u7248\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3001\u3064\u307e\u308a\u306f\u795e\u30af\u30e9\u30b9\u306e\u5fa1\u4ec1\u3067\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5de437434c4406cf2fc3\/3-0.png\" alt=\"gihyo00.png\" \/><\/div>\n<p>\u767b\u5927\u904a\u6c0f\u304c\u30e1\u30c7\u30a3\u30a2\u306b\u591a\u304f\u51fa\u6f14\u3057\u3066\u3044\u3066\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u30b9\u30d0\u30e9\u30b7\u3055\u306b\u3064\u3044\u3066\u8aac\u3044\u3066\u3044\u308b\u306e\u3092\u898b\u308b\u3068<br \/>\n\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u89e6\u308a\u304f\u3089\u3044\u306f\u4f53\u9a13\u3057\u3066\u307f\u305f\u304f\u306a\u308b\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306fSoftware Design\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u8a18\u4e8b\u3092\u306a\u305e\u3089\u3048\u3066\u307f\u308b\u3053\u3068\u3092\u3057\u307e\u3059\u3002<br \/>\n\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u8a18\u4e8b\u306f\u9023\u8f09\u8a18\u4e8b\u3067\u3042\u308a\u30011\u6708\u53f7\u304b\u3089\u59cb\u307e\u3063\u305f\u3089\u3057\u3044\u3002<\/p>\n<p>\u203b\u79c1\u306e\u4f7f\u3063\u3066\u3044\u308bPC\u306fWindows 10\u3067\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u306b\u3057\u305f\u8a18\u4e8b<\/h2>\n<p>\u3044\u3064\u3082\u304a\u4e16\u8a71\u306b\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">Rust\u306e\u304a\u52c9\u5f37 &#8211; Docker\u3067\u74b0\u5883\u69cb\u7bc9<\/ul>\n<h2>Software Design1\u6708\u53f7\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/h2>\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u6a29\u5229\u306f\u3001\u96d1\u8a8c\u3092\u8cfc\u5165\u3057\u305f\u4eba\u306b\u3057\u304b\u306a\u3044\u306e\u3060\u308d\u3046\u304b\u3002<br \/>\n\u304a\u3082\u3080\u308d\u306b\u6280\u8853\u8a55\u8ad6\u793e\u306e\u30b5\u30dd\u30fc\u30c8\u30da\u30fc\u30b8\u3067\u300c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30b0\u300d\u3092\u691c\u7d22\u3057\u3066\u307f\u308b\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5de437434c4406cf2fc3\/12-0.png\" alt=\"gihyo01.png\" \/><\/div>\n<p>\u691c\u7d22\u7d50\u679c\u306e\u4e00\u89a7\u306b2021\u5e741\u6708\u53f7\u306e\u30ea\u30f3\u30af\u304c\u51fa\u73fe\u3059\u308b\u306e\u3067\u3001\u304a\u3082\u3080\u308d\u306b\u30af\u30ea\u30c3\u30af\u3059\u308b\u3002<br \/>\n\u305d\u306e\u5148\u306b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30ea\u30f3\u30af\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u3063\u305f\u3088\u3046\u306a\u3001\u306a\u304b\u3063\u305f\u3088\u3046\u306a\u30fb\u30fb\u30fb\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5de437434c4406cf2fc3\/14-0.png\" alt=\"gihyo02.png\" \/><\/div>\n<h2>Dcoker Desktop\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h2>\n<p>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306fRust\u3092\u4f7f\u3063\u3066\u5b9f\u884c\u3059\u308b\u3002<br \/>\n\u65b0\u3057\u3044\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u74b0\u5883\u3092\u3055\u304f\u3063\u3068\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001Docker\u3068\u3044\u3046\u6280\u8853\u304c\u4fbf\u5229\u3089\u3057\u3044\u3002<\/p>\n<p>\u307e\u305a\u306fDocker\u306e\u74b0\u5883\u3092\u3064\u304f\u308b\u3002<\/p>\n<p>Docker Desktop\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30b5\u30a4\u30c8<\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u3089\u52d5\u4f5c\u78ba\u8a8d\u3092\u304b\u306d\u3066\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b\u3002<br \/>\n\u4ee5\u5f8c\u3001Rust\u306e\u64cd\u4f5c\u3082\u542b\u3081\u3059\u3079\u3066PowerShell\u4e0a\u3067\u5b8c\u7d50\u3059\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"err\">&gt;<\/span> <span class=\"n\">docker<\/span> <span class=\"nt\">--version<\/span>\r\n<span class=\"n\">Docker<\/span> <span class=\"nx\">version<\/span> <span class=\"nx\">20.10.2<\/span><span class=\"p\">,<\/span> <span class=\"nx\">build<\/span> <span class=\"nx\">2291f61<\/span>\r\n<\/code><\/pre>\n<h3>\u30a4\u30e1\u30fc\u30b8\u3092\u30d7\u30eb\u3059\u308b<\/h3>\n<p>Docker\u304c\u4f55\u8005\u304b\u3088\u304f\u308f\u304b\u3063\u3066\u3044\u307e\u305b\u3093\u304c\u30fb\u30fb\u30fb<br \/>\nGoogle\u691c\u7d22\u306e\u4e0a\u4f4d\u306e\u30ea\u30f3\u30af\u3092\u305f\u3069\u3063\u3066\u3044\u3051\u3070\u3001\u308f\u304b\u3089\u306a\u304f\u3066\u3082\u306a\u3093\u3068\u304b\u306a\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u300crust docker\u300d\u3067\u691c\u7d22\u3057\u3001docker hub\u306b\u884c\u304d\u307e\u3059\u3002<br \/>\ndocker pull rust\u3092\u305b\u3088\u3001\u3068\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u5f93\u3044\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5de437434c4406cf2fc3\/24-0.png\" alt=\"rust-dockerhub.png\" \/><\/div>\n<pre class=\"post-pre\"><code><span class=\"c\"># docker pull rust\u3059\u308b\u524d<\/span>\r\n<span class=\"c\"># \u30a4\u30e1\u30fc\u30b8\u304c\u4f55\u3082\u306a\u3044\u3002<\/span>\r\n<span class=\"err\">&gt;<\/span> <span class=\"n\">docker<\/span> <span class=\"nx\">images<\/span>\r\n<span class=\"n\">REPOSITORY<\/span>   <span class=\"nx\">TAG<\/span>       <span class=\"nx\">IMAGE<\/span> <span class=\"nx\">ID<\/span>   <span class=\"nx\">CREATED<\/span>   <span class=\"nx\">SIZE<\/span>\r\n\r\n<span class=\"c\"># \u30a4\u30e1\u30fc\u30b8\u3092\u30d7\u30eb\u3059\u308b<\/span>\r\n<span class=\"c\"># \u5b8c\u4e86\u3059\u308b\u307e\u3067\u306b3\u5206\u304f\u3089\u3044\u304b\u304b\u308a\u307e\u3057\u305f<\/span>\r\n<span class=\"err\">&gt;<\/span> <span class=\"n\">docker<\/span> <span class=\"nx\">pull<\/span> <span class=\"nx\">rust<\/span>\r\n<span class=\"kr\">Using<\/span> <span class=\"n\">default<\/span> <span class=\"nx\">tag:<\/span> <span class=\"nx\">latest<\/span>\r\n<span class=\"n\">latest:<\/span> <span class=\"nx\">Pulling<\/span> <span class=\"nx\">from<\/span> <span class=\"nx\">library\/rust<\/span>\r\n<span class=\"mi\">8<\/span><span class=\"n\">bf9c589d5f9:<\/span> <span class=\"nx\">Pull<\/span> <span class=\"nx\">complete<\/span>\r\n<span class=\"mi\">4<\/span><span class=\"n\">c70e46d8b5f:<\/span> <span class=\"nx\">Pull<\/span> <span class=\"nx\">complete<\/span>\r\n<span class=\"n\">ea848ad42f0d:<\/span> <span class=\"nx\">Pull<\/span> <span class=\"nx\">complete<\/span>\r\n<span class=\"mi\">48<\/span><span class=\"n\">fe137f8d26:<\/span> <span class=\"nx\">Pull<\/span> <span class=\"nx\">complete<\/span>\r\n<span class=\"mi\">4<\/span><span class=\"n\">b13f6ed9b0c:<\/span> <span class=\"nx\">Pull<\/span> <span class=\"nx\">complete<\/span>\r\n<span class=\"mi\">8<\/span><span class=\"n\">a08deff2c33:<\/span> <span class=\"nx\">Pull<\/span> <span class=\"nx\">complete<\/span>\r\n<span class=\"n\">Digest:<\/span> <span class=\"nx\">sha256:e57a7b85bcbabb5bebbbd8e900e21fbdd014408347c37fc789485469f6bd7595<\/span>\r\n<span class=\"n\">Status:<\/span> <span class=\"nx\">Downloaded<\/span> <span class=\"nx\">newer<\/span> <span class=\"nx\">image<\/span> <span class=\"nx\">for<\/span> <span class=\"nx\">rust:latest<\/span>\r\n<span class=\"n\">docker.io\/library\/rust:latest<\/span>\r\n\r\n<span class=\"c\"># docker pull rust\u3057\u305f\u5f8c<\/span>\r\n<span class=\"c\"># \u30a4\u30e1\u30fc\u30b8\u4e00\u89a7\u306brust\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f<\/span>\r\n<span class=\"err\">&gt;<\/span> <span class=\"n\">docker<\/span> <span class=\"nx\">images<\/span>\r\n<span class=\"n\">REPOSITORY<\/span>   <span class=\"nx\">TAG<\/span>       <span class=\"nx\">IMAGE<\/span> <span class=\"nx\">ID<\/span>       <span class=\"nx\">CREATED<\/span>        <span class=\"nx\">SIZE<\/span>\r\n<span class=\"n\">rust<\/span>         <span class=\"nx\">latest<\/span>    <span class=\"nx\">68fa8c8b027f<\/span>   <span class=\"nx\">20<\/span> <span class=\"nx\">hours<\/span> <span class=\"nx\">ago<\/span>   <span class=\"nx\">1.25GB<\/span>\r\n\r\n<\/code><\/pre>\n<h2>Docker\u30b3\u30f3\u30c6\u30ca\u30fc\u306e\u4e2d\u3067Rust\u3092\u4f53\u9a13\u3059\u308b<\/h2>\n<p>\u30b3\u30f3\u30c6\u30ca\u30fc\u306e\u610f\u5473\u3082\u3088\u304f\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u4e2d\u306b\u5165\u308c\u308b\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>C\u30c9\u30e9\u30a4\u30d6\u76f4\u4e0b\u306bworkspace\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u4f5c\u6210\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u30b3\u30f3\u30c6\u30ca\u30fc\u306e\u4e2d\u306e\u3042\u3061\u3089\u5074\u306e\u4e16\u754c\u3068\u3001\u3075\u3060\u3093\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u3067\u958b\u3044\u3066\u3044\u308b\u3053\u3061\u3089\u5074\u306e\u4e16\u754c\u3092\u884c\u304d\u6765\u3059\u308b\u305f\u3081\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3067\u3059\u3002<br \/>\n\u3042\u3061\u3089\u5074\u3068\u3053\u3061\u3089\u5074\u306e\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u30fc\u3067\u3042\u308b\u3068\u8a8d\u8b58\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3042\u3061\u3089\u5074\u3068\u3053\u3061\u3089\u5074\u3067\u601d\u3044\u51fa\u3057\u307e\u3057\u305f\u304c\u3002\u30b7\u30e3\u30fc\u30de\u30f3\u30ad\u30f3\u30b0\u304c4\u6708\u304b\u3089\u653e\u9001\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002\u61d0\u304b\u3057\u3044\u3067\u3059\u3002<\/p>\n<h2>\u30b3\u30f3\u30c6\u30ca\u30fc\u306e\u4e2d\u306b\u5165\u308b<\/h2>\n<p>\u53c2\u8003\u30b5\u30a4\u30c8\u306b\u3088\u308b\u3068\u3001\u66f8\u304d\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u3068\u30b3\u30f3\u30c6\u30ca\u30fc\u306b\u5165\u308c\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\ndocker run -itv \/C\/workspace:\/workspace &#8211;name rust-env rust<\/p>\n<p>\u540d\u524d\u304crust-env\u3068\u3044\u3046rust\u30a4\u30e1\u30fc\u30b8\u306e\u30b3\u30f3\u30c6\u30ca\u30fc\u3092run\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\nrun\u3059\u308b\u3060\u3051\u3067\u4e2d\u306b\u5165\u308c\u308b\u306e\u304b\u3001-itv\u3042\u305f\u308a\u306e\u4f55\u304b\u304c\u5165\u3089\u305b\u3066\u304f\u308c\u3066\u3044\u308b\u306e\u304b\u3001\u4e0d\u660e\u3067\u3059\u3002\u3042\u3068\u3067\u52c9\u5f37\u3057\u307e\u3059\u3002<\/p>\n<h3>\u3042\u3061\u3089\u5074\u306e\u4e16\u754c\u3067\u4f5c\u696d\u3092\u3059\u308b<\/h3>\n<p>\u3042\u3061\u3089\u5074\uff08\u30b3\u30f3\u30c6\u30ca\u30fc\u306e\u4e2d\uff09\u3067\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3001\u305d\u3053\u3067\u3055\u3089\u306b\u65b0\u3057\u3044\u30d5\u30a9\u30eb\u30c0\u30fc\u3092new\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"err\">&gt;<\/span> <span class=\"n\">cd<\/span> <span class=\"nx\">workspace<\/span>\r\n<span class=\"c\"># \u3053\u306e\u6642\u70b9\u3067workspace\u5185\u306f\u304b\u3089\u3063\u307d<\/span>\r\n\r\n<span class=\"err\">&gt;<\/span> <span class=\"n\">cargo<\/span> <span class=\"nx\">new<\/span> <span class=\"nx\">echo-server<\/span>\r\n<span class=\"err\">&gt;<\/span> <span class=\"n\">cargo<\/span> <span class=\"nx\">new<\/span> <span class=\"nx\">echo-client<\/span>\r\n<span class=\"c\"># workspace\u5185\u306b\u3075\u305f\u3064\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u304c\u751f\u6210\u3055\u308c\u3066\u3044\u307e\u3059<\/span>\r\n<span class=\"c\"># &gt;\/workspace# ls<\/span>\r\n<span class=\"c\"># echo-client  echo-server<\/span>\r\n<\/code><\/pre>\n<p>cargo new\u306e\u64cd\u4f5c\u3092\u3059\u308b\u3068\u300cCreated binary (application) echo-server package\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u3068\u3068\u3082\u306b\u3001\u65b0\u3057\u3044\u30d5\u30a9\u30eb\u30c0\u30fc\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u305d\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4e2d\u306bsrc\u30d5\u30a9\u30eb\u30c0\u30fc\u3068Cargo.toml\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nsrc\u306e\u4e2d\u306b\u306fmain.rs\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306emain.rs\u306e\u4e2d\u8eab<br \/>\nrust<br \/>\nfn main() {<br \/>\nprintln!(&#8220;Hello, world!&#8221;);<br \/>\n}<\/p>\n<h3>\u3053\u3061\u3089\u5074\u306e\u4e16\u754c\u3067\u4f5c\u696d\u3092\u3059\u308b<\/h3>\n<p>\u81ea\u52d5\u751f\u6210\u3055\u308c\u305fmain.rs\u3068Cargo.toml\u3092\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u4e2d\u8eab\u3067\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002<br \/>\nC\u30c9\u30e9\u30a4\u30d6\u76f4\u4e0b\u306b\u3064\u304f\u3063\u305fworkspace\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4e2d\u306b\u3042\u308bmain.rs\u30d5\u30a1\u30a4\u30eb2\u3064\u3068\u3001Cargo.toml\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30c6\u30ca\u30fc\u306e\u4e2d\u3067cat echo-client\/src\/main.rs\u3092\u6253\u3063\u3066\u3001main.rs\u306e\u4e2d\u8eab\u304c\u66f8\u304d\u5909\u308f\u3063\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\uff08\u7d50\u679c\u306f\u3053\u3053\u306b\u306f\u66f8\u304d\u307e\u305b\u3093\u3002\u306a\u306b\u304b\u60aa\u3044\u3053\u3068\u306e\u3088\u3046\u306a\u6c17\u304c\u3059\u308b\u306e\u3067\u30fb\u30fb\u30fb\uff09<\/p>\n<h2>\u3044\u3056\u3001\u901a\u4fe1\u3055\u305b\u3066\u307f\u308b<\/h2>\n<p>\u30b5\u30fc\u30d0\u30fc\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u4e21\u65b9\u3092\u3064\u304b\u3046\u306e\u3067\u3001\u30d7\u30ed\u30bb\u30b9\u304c\u3075\u305f\u3064\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u30d7\u30ed\u30bb\u30b9\u3092\u3075\u305f\u3064\u30fb\u30fb\u30fb\uff1f<br \/>\n\u3088\u304f\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u9762\u5012\u306a\u306e\u3067Docker Desktop\u3055\u3093\u306e\u529b\u3092\u501f\u308a\u307e\u3059<\/p>\n<p>CLI\u30922\u56de\u30af\u30ea\u30c3\u30af\u3057\u3066\u7a93\u3092\u3075\u305f\u3064\u7528\u610f\u3057\u307e\u3059\u3002<br \/>\n\u7247\u65b9\u304c\u30b5\u30fc\u30d0\u30fc\u5f79\u3001\u3082\u3046\u7247\u65b9\u304c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5f79\u3067\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5de437434c4406cf2fc3\/46-0.png\" alt=\"docker-cli.png\" \/><\/div>\n<p>\u5148\u306b\u30b5\u30fc\u30d0\u30fc\u5f79\u306e\u7a93\uff08\u5de6\uff09\u3067cargo run\u3092\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n\u6b21\u306b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5f79\u306e\u7a93\uff08\u53f3\uff09\u3067\u540c\u3058\u304fcargo run\u3001\u3064\u3065\u3051\u3066Hello\u3092\u6253\u3061\u30a8\u30f3\u30bf\u30fc\u3001\u3064\u3065\u3051\u3066World\u3092\u6253\u3061\u30a8\u30f3\u30bf\u30fc\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u7d50\u679c\u3001\u5de6\u306e\u30b5\u30fc\u30d0\u30fc\u3078\u30e1\u30c3\u30bb\u30fc\u30b8\u304c2\u56de\u5206\u3051\u3066\u5c4a\u3044\u305f\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306b\u3082\u30b5\u30fc\u30d0\u30fc\u3078\u9001\u3063\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u305d\u306e\u307e\u307e\u8fd4\u3055\u308c\u305f\u7d50\u679c\u3001\u540c\u3058\u6587\u5b57\u5217\u304c2\u91cd\u3067\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\uff08\u4e0a\u306f\u81ea\u5206\u306e\u9001\u4fe1\u3001\u4e0b\u306f\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u53d7\u4fe1\uff09<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5de437434c4406cf2fc3\/49-0.png\" alt=\"cli-connection.png\" \/><\/div>\n<h2>\u3064\u3065\u304d\u306f\u672c\u66f8\u3067<\/h2>\n<p>\u672c\u66f8\u3067\u306f\u3053\u306e\u5148\u3067\u3001\u610f\u56f3\u7684\u306b\u30d1\u30b1\u30c3\u30c8\u30ed\u30b9\u3092\u5f15\u304d\u8d77\u3053\u3057\u305f\u3068\u304d\u306e\u6319\u52d5\u3092Wireshark\u3092\u4f7f\u3063\u3066\u76e3\u8996\u3057\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b8b\u5ff5\u306a\u304c\u3089docker\u30b3\u30f3\u30c6\u30ca\u30fc\u306e\u4e2d\u3067\u30b0\u30e9\u30d5\u30a3\u30ab\u30eb\u306aWireshark\u3092\u52d5\u304b\u304f\u8853\u3092\u77e5\u3089\u306a\u3044\u306e\u3067<br \/>\n\u3053\u306e\u8a18\u4e8b\u306f\u3053\u3053\u307e\u3067\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Software Design\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 twitter\u3067Software Design3\u6708\u53f7 [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45326","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>- Blog - Silicon Cloud<\/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:\/\/www.silicloud.com\/zh\/blog\/45326-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"Software Design\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 twitter\u3067Software Design3\u6708\u53f7 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/45326-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-08T19:18:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T10:30:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5de437434c4406cf2fc3\/3-0.png\" \/>\n<meta name=\"author\" content=\"\u6587, \u7fd4\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6587, \u7fd4\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45326-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/45326-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-11-08T19:18:27+00:00\",\"dateModified\":\"2024-05-04T10:30:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/45326-2\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\",\"name\":\"\u6587, \u7fd4\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"caption\":\"\u6587, \u7fd4\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45326-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- Blog - Silicon Cloud","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:\/\/www.silicloud.com\/zh\/blog\/45326-2\/","og_locale":"zh_CN","og_type":"article","og_description":"Software Design\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 twitter\u3067Software Design3\u6708\u53f7 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/45326-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-08T19:18:27+00:00","article_modified_time":"2024-05-04T10:30:24+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5de437434c4406cf2fc3\/3-0.png"}],"author":"\u6587, \u7fd4","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6587, \u7fd4","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45326-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/45326-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-11-08T19:18:27+00:00","dateModified":"2024-05-04T10:30:24+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/45326-2\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c","name":"\u6587, \u7fd4","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","caption":"\u6587, \u7fd4"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45326-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=45326"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45326\/revisions"}],"predecessor-version":[{"id":99975,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45326\/revisions\/99975"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=45326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=45326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=45326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}