-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnippets.txt
More file actions
18 lines (14 loc) · 751 Bytes
/
snippets.txt
File metadata and controls
18 lines (14 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 🔧 Bash profile setup for docker-compose
volumes:
- ~/docker/docker_bash/.bashrc:/root/.bashrc:ro
- ~/docker/docker_bash/.aliases:/root/.aliases:ro
- ~/docker/docker_bash/.bash_profile:/root/.bash_profile:ro
- ~/docker/docker_bash/.motd.sh:/root/.motd.sh:ro
# 🛠️ Bash profile injection for a running container
docker cp ~/docker/docker_bash/.bashrc ollama:/root/.bashrc && \
docker cp ~/docker/docker_bash/.aliases ollama:/root/.aliases && \
docker cp ~/docker/docker_bash/.bash_profile ollama:/root/.bash_profile && \
docker cp ~/docker/docker_bash/.motd.sh ollama:/root/.motd.sh && \
docker exec ollama chmod +x /root/.motd.sh
# 🐳 Enter a container with Jojo's docker_bash profile active
docker exec -it <container-name> bash