I followed the following steps to make my a custom image of postgresql database:
docker pull postgresql
Then
makdir postgresql
touch Dockerfile
sudo nano Dockerfile
Edited the docker file to be like below:
FROM ubuntu:14.04
MAINTAINER tenali<[email protected]>
RUN apt-get update
RUN docker pull mdillon/postgis
now when i do
sudo docker build -t gautam/postgresql:v2 .
I get the following error:
/bin/sh: 1: docker: not found
I guess what that's saying is the command docker does't exist in /bin/sh , i guess i am making a mistake in writing the Dockerfile. can you check my Dockerfile and tell me what am i doing wrong ?
sudoto edit your Dockerfile (in fact, that will likely come back to bite you at some point), and secondly "docker: not found` suggets that you simply do not have docker installed at this time. It has nothing to do with the contents of your Dockerfile.