เมื่อลืม docker run command ? เจ้าจงคิดถึง rekcod

frogconn
frogconn
Sep 3, 2018 · 1 min read

หลายครั้งที่เราทำการสร้าง Container ด้วย Docker ขึ้นมาใช้งานแบบ CLI แบบสด ๆ แต่ก็ด้วยความบังเอิญเราก็ใช้ Container นั้นไปเรื่อย ๆ วันดีคืนดี container มีปัญหาทำงานผิดปกติ หรืออะไรก็แล้วแต่ แต่ปัญหาคือเราจำ Command ใน การสร้าง Container นั้นไม่ได้อีกแล้ว นึกยังไงก็ไม่ออก ไม่ได้ทำ Bash Script ไว้ด้วย วันนี้มีทางออก ผมขอเสนอ rekcod เป็นเป็น 3D Utility จาก NodeJS เริ่มต้นติดตั้งเลยละกัน (ผมขอข้ามการติดตั้ง NodeJS ไปนะครับ)

ติดตั้งง่าย ๆ ผ่าน npm ครับ

$ npm i -g rekcod

จากนั้นสามารถเรียกใช้งานจากที่ใหนก็ได้ล่ะ เนื่องจากเราลงแบบ Global ล่ะ

$ rekcod 18caec7f304c

จากนั้นผลลัพธ์ก็จะประมาณนี้

Command result by rekcod

จากผลลัพธ์จากรูปด้านบน น่าจะพอไล่ดู Command ที่เราทำทิ้งไว้ได้ครับ ลองใช้งานกันดูครับสะดวกขึ้นเยอะเลยล่ะครับ

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade