How to build a Docker base image from scratch?

0 votes

Currently I use:

docker pull microsoft/windowsservercore

to pull a base image. But I want to make my own base image. How can I do that?

Sep 27, 2018 in DevOps & Agile by Sophie may
• 9,430 points
84 views

1 answer to this question.

0 votes

There are many ways to build a base image. You can use tar or scratch

Refer the example below or look up docker’s official website, you might find something there.

FROM scratch
ADD helloworld.sh /usr/local/bin/hellowworld.sh
CMD ["/usr/local/bin/helloworld.sh"]
answered Sep 27, 2018 by Tyrion anex
• 8,280 points

Related Questions In DevOps & Agile

+1 vote
2 answers

How do I run Apache server from Docker without mapping to a location?

If you're seeing a 500 error, that's ...READ MORE

answered Oct 18, 2018 in DevOps & Agile by lina
• 8,100 points
60 views
0 votes
1 answer
+3 votes
4 answers

Unable to build docker image

It looks like the dev dependencies were ...READ MORE

answered Oct 11, 2018 in DevOps & Agile by lina
• 8,100 points

edited Oct 17, 2018 by lina 650 views
0 votes
1 answer

How to get remote access to a private docker-registry?

New client version refuses to work with ...READ MORE

answered Jul 31, 2018 in DevOps & Agile by Kalgi
• 37,320 points
66 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,160 points
99 views
0 votes
1 answer

How to a run deployed app in Docker for Windows?

To deploy an ASP.NET web application to ...READ MORE

answered Aug 29, 2018 in DevOps & Agile by Tyrion anex
• 8,280 points
106 views