Public Repository

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description

Dockerfile:
..............START..............
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y curl \
vim
VOLUME /vagrant/volume/fsunix /psdata/fsunix
VOLUME ["/vagrant/volum/fswin", "/psdata/fswin"]
CMD bash
.............END................
//Build image
sudo docker build -t ashokmor/myubuntubox:1.0 .

//Run docker with shell
sudo docker run -it ashokmor/myubuntubox:1.0 bash

//Push image
sudo docker login
sudo docker push -i ashokmor/myubuntubox:1.0
//Overwrite default command, which is bash for ubuntu
CMD ping 127.0.0.1 -c 30
CMD ["ping", "127.0.0.1", "-c", "30"]

//Specify command to run which can not be overwritten run time, parameter can be
ENTRYPOINT ["ping"]

//To go into container
sudo docker exec -it <container-id> bash

Docker inspect
EG: sudo docker inspect 79d7c25b3de1 | grep "IP"
Docker volume
Docker link
Docker ports

Docker Pull Command
Owner
ashokmor

Comments (0)