How to edit a docker image and deploy it

时间:2016-04-04 16:38:27

标签: image docker ubuntu-14.04

I want to install custom programs on an ubuntu 14.04 image using docker and then upload the result to a repository online. Is there a guide somewhere that can point me to the right direction ?

1 个答案:

答案 0 :(得分:0)

you create a Dockerfile that starts with ...

FROM ubuntu:14.04
# Other commands here e.g.
# RUN apt-get -y install apache2
CMD bash

THEN create an account on docker hub

https://hub.docker.com/

THEN you can ...

docker build ... etc

to build your image

THEN to test it, create a container with ...

docker run ... etc

THEN finally, when happy with it ...

docker login
docker push ... etc

Once pushed, you can pull from any server with ...

docker login
docker pull

Obviously, you need docker installed on every server you are pulling from