-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathcommands.sh
50 lines (29 loc) · 1.27 KB
/
commands.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
A few notes to quickly get strated with docker.
--- Docker ---
docker run -d -p 5672:5672 -p 15672:15672 -v <log-dir>:/data/log -v <data-dir>:/data/mnesia dockerfile/rabbitmq
docker exec -it waterbutler_tornado_1 /bin/bash (bash shell on running container)
--- Docker Compose ---
docker run \
-d \
-it \
--name waterbutler_data_1 \
waterbutler_data
docker-compose build
docker-compose up
docker-compose run -d data
--- ZSH Shortcuts ---
https://github.com/icereval/dotfiles/blob/master/zsh/.zprezto/modules/docker/init.zsh
dsa (docker stop all containers)
drma (docker remove all containers)
drmi (docker remove all images)
drmin (docker remove all images w/o a tag, e.g. <none>)
--- Boot2Docker & VirtualBox Port Forwarding ---
VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port7777,tcp,,7777,,77777"
--- VirtualBox Port Forwarding (Vagrant) ---
## forward 7777 to local host for a specific virtual machine
VBoxManage controlvm boot2docker-vm natpf1 "waterbutler_tornado,tcp,127.0.0.1,7777,,7777"
--- VMware Fusion Port Forwarding (Vagrant) ---
https://github.com/icereval/dotfiles/blob/master/zsh/.zprezto/modules/vmware/init.zsh
vmnet-cli (networking cli)
vmnet-restart (restart the networking daemon)
vmnet-nat (shortcut to editing the nat.conf file)