$ boot2docker start
Waiting for VM and Docker daemon to start...
.................................
Started.
To connect the Docker client to the Docker daemon, please set:
export DOCKER_HOST=tcp://192.168.59.103:2375
1
$ export DOCKER_HOST=tcp://192.168.59.103:2375
Dockerfile
作業フォルダ作成
12345
$ cd
$ mkdir nginx
$ cd nginx
$ echo 'Welcome Page!' > index.html
$ vim Dockerfile
Dockerfileの内容
123456
FROM ubuntu:latest
MAINTAINER contee213
RUN apt-get update
RUN apt-get install -y nginx
ADD index.html /usr/share/nginx/html/
ENTRYPOINT /usr/sbin/nginx -g 'daemon off;' -c /etc/nginx/nginx.conf