-
Go to connect to ssh on boot2docker Kitematic
docker-machine ssh default
. -
Create a folder
sudo mkdir /var/www
to boot2docker and go to look look is Createls -la
-
mount your folder
sudo mount -t vboxsf www{mac folder} /var/www{boot2docker folder}
. Go to look is good to mount your files and see print your reportory {mac folder}. -
And go to create your files bootlocal.sh
sudo vi /var/lib/boot2docker/bootlocal.sh
- To sure your script.sh is run exec
sudo chmod +x /var/lib/boot2docker/bootlocal.sh
- go to search package Composer/Composer.
- run command
docker run -ti -v $(pwd):/app composer/composer init
- to persiste command composer go to bootlocal.sh
sudo vi /var/lib/boot2docker/bootlocal.sh
and add your command. - write bootlocal.sh
echo 'alias composer='\''docker run -ti --rm -v $(pwd):/app composer/composer'\''' >> /home/docker/.ashrc
echo 'cd /var/www' >> /home/docker/.ashrc
- reboot Kitematic.
Finaly restart your Kitematic