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,870 points
161 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,110 points
83 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,110 points

edited Oct 17, 2018 by lina 1,031 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
• 42,330 points
105 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,920 points
224 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
127 views