Sign inSign up

mbinunn/ubuntu_with_startup_script

By mbinunn

•Updated over 5 years ago

Regular UBUNTU, but with a built-in startup script on /root/startup.sh

Image
0

1.2K

mbinunn/ubuntu_with_startup_script repository overview


⁠Overview

This image provides an UBUNTU container with a built-in startup script on /root/startup.sh .
It is intended for creating ubuntu based images without the need of using a Dockerfile for integrating startup commands.


⁠Usage Example:

Assuming that your user has the docker privileges, here is an example for creating and running the container:
docker run -i -t --name=MyContainer mbinunn/ubuntu_with_startup_script

For integrating your own startup.sh from the host system, use:
docker run -i -t -v /path/to/startup.sh:/root/startup.sh --name=MyContainer mbinunn/ubuntu_with_startup_script


⁠Saving your own image

After making changes, installing software and changing startup.sh to you needs, type exit and save your own image by using the following command:
docker commit MyContainer my_own_image:v1


⁠Source code

See my source code on https://github.com/mbinnun/Dockers/tree/main/ubuntu-with-startup-script⁠

Tag summary

Content type

Image

Digest

Size

27.2 MB

Last updated

over 5 years ago

docker pull mbinunn/ubuntu_with_startup_script