From 7f394c94eae89363cd74507a5c14ddc5f1aed1c5 Mon Sep 17 00:00:00 2001 From: Liam Pietralla Date: Tue, 17 Sep 2024 11:28:31 +1000 Subject: [PATCH] add docker exec script --- .vitepress/config.mts | 8 ++++++++ docs/docker/exec-into-container.md | 7 +++++++ docs/docker/index.md | 3 +++ docs/index.md | 4 ++++ 4 files changed, 22 insertions(+) create mode 100644 docs/docker/exec-into-container.md create mode 100644 docs/docker/index.md diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 5e1300b..46ff91a 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -55,6 +55,14 @@ export default defineConfig({ { text: 'Text Width HR', link: '/css/text-width-hr' }, ] }, + { + text: 'Docker', + link: '/docker/', + collapsed: true, + items: [ + { text: 'Docker Exec', link: '/docker/exec-into-contanainer' }, + ] + }, { text: 'EF Core', link: '/ef-core/', diff --git a/docs/docker/exec-into-container.md b/docs/docker/exec-into-container.md new file mode 100644 index 0000000..b8e08a9 --- /dev/null +++ b/docs/docker/exec-into-container.md @@ -0,0 +1,7 @@ +# Exec Into Container + +Often it's handy to exec into a container to poke around or run commands. Here's how you can do that: + +```bash +docker run --rm -it --entrypoint /bin/bash +``` \ No newline at end of file diff --git a/docs/docker/index.md b/docs/docker/index.md new file mode 100644 index 0000000..0c1f35e --- /dev/null +++ b/docs/docker/index.md @@ -0,0 +1,3 @@ +# Docker Snippets and Musings + +#### [Exec Into Container](./exec-into-container.md) \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index db81674..6325ea8 100644 --- a/docs/index.md +++ b/docs/index.md @@ -18,6 +18,10 @@ hero: text: CSS link: /css/ + - theme: alt + text: Docker + link: /docker/ + - theme: alt text: EF Core link: /ef-core/