-
cd
into the folder you want to build the container for. -
Specify the base image you want to build the container from in the
Dockerfile
-
Put your changes that you want to do in
setup.sh
-
build the container with
docker build -t <name-that-you-want-for-container>:tag .
e.g.docker build -t ubuntu-xenial-kurento:latest
-
Once the image builds you should see it in the list of downloaded docker images with
docker images
-
Sharing your image with Docker registery 6.1 Log in with your Docker ID
docker login
6.2 Tag the image with following syntaxdocker tag image username/repository:tag
e.g.docker tag ubuntu-xenial-kurento rajudev/ubuntu-xenial-kurento:latest
6.3 Rundocker images
to see your newly tagged image. 6.4 Upload your tagged image to the repository: syntaxdocker push username/repository:tag
e.g.docker push rajudev/ubuntu-xenial-kurento:latest
-
Next time just use your own container as usual
docker pull <your-username>/<your-container-name>
e.g.docker pull rajudev/ubuntu-xenial-kurento:latest
-
Notifications
You must be signed in to change notification settings - Fork 0
rajudev/custom-docker-containers
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Custom Docker containers made on per use case basis
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published