add docker exec script
This commit is contained in:
parent
b12a09de0c
commit
7f394c94ea
@ -55,6 +55,14 @@ export default defineConfig({
|
|||||||
{ text: 'Text Width HR', link: '/css/text-width-hr' },
|
{ 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',
|
text: 'EF Core',
|
||||||
link: '/ef-core/',
|
link: '/ef-core/',
|
||||||
|
7
docs/docker/exec-into-container.md
Normal file
7
docs/docker/exec-into-container.md
Normal file
@ -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 <container-name>
|
||||||
|
```
|
3
docs/docker/index.md
Normal file
3
docs/docker/index.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Docker Snippets and Musings
|
||||||
|
|
||||||
|
#### [Exec Into Container](./exec-into-container.md)
|
@ -18,6 +18,10 @@ hero:
|
|||||||
text: CSS
|
text: CSS
|
||||||
link: /css/
|
link: /css/
|
||||||
|
|
||||||
|
- theme: alt
|
||||||
|
text: Docker
|
||||||
|
link: /docker/
|
||||||
|
|
||||||
- theme: alt
|
- theme: alt
|
||||||
text: EF Core
|
text: EF Core
|
||||||
link: /ef-core/
|
link: /ef-core/
|
||||||
|
Loading…
Reference in New Issue
Block a user