#!/bin/bash
echo 'Cleaning up previous docker images'
docker rm -f localhost
DIR=$( cd dirname $0/..; pwd )
#echo ${DIR}
exec docker run -itd --name localhost -v ${DIR}/:/var/www/html -w /var/www/html sfvishalgupta/serverless:v0 bash > /dev/null 2>&1
Use above command to run docker image. create a file and put above code.
Use below command to enter into docker image. create a file and put below code. #!/bin/bash docker exec -it localhost bash
Content type
Image
Digest
Size
499.2 MB
Last updated
over 8 years ago
docker pull sfvishalgupta/serverless:v0