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/