-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathhowto.log
More file actions
22 lines (19 loc) · 836 Bytes
/
howto.log
File metadata and controls
22 lines (19 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Notes for me:
docker run -i -t ubuntu:14.04 /bin/bash # get initial image to set up everything
docker ps -a # lists available dockers (-a list of non running containers, without -a, running ones)
docker docker start -i id # starts the docker (-i means interactive (like bash)
docker build -t meepdocker . # makes a docker image with local Dockerfile and tag meepdocker
#docker run -it -v /hostOSsrc:/home/hostSRC meepdocker
sudo docker run -it -v /home/abhe/Documents:/home/hostSRC -p 2222:22 meepdocker
# to fix internet, on HOST
pkill docker
iptables -t nat -F
ifconfig docker0 down
brctl delbr docker0
docker -d
GUI:
on host:
xhost + (open access to display on your pc)
inside docker container:
DISPLAY=yourLANip:0 firefox
apt-get install -y openssh-server && update-rc.d ssh defaults && service ssh restart && service ssh status