Docker: Cookbook

Overview

1#: docker: “build” requires 1 argument. See 'docker build --help'

Most probably you missed a dot, need to add it, example

docker build -t docusaurus-doc . 

It means you use the Dockerfile in the local directory

#2: “read-only file system” error running Docker Toolbox in Windows 7

Try restarting the docker machine by following below steps:

First, you need to find the name of your docker machine

 docker-machine ls

Then with your machine name, run the command

docker-machine restart <name>

#3: Docker for windows - Mapping docker to localhost

You can do it by configuring your Virtualbox. Follow below steps,

  • VirtualBox -> Your BOX -> Settings -> Network ->
  • Choose NAT
  • Open Advanced
  • Click Port Forwarding
  • Add a new rule to map the desired port you need from host to guest
  • Ok/Save
  • Stop Box
  • Start the Box

comments powered by Disqus

About the author

  • Abhith Rajan

    Abhith Rajan

    Abhith Rajan is a full-stack developer, consultant, Sysberries employee, and biker. Who passionate about C# and JavaScript. Works on his blog, his personal finance web app and its react native mobile app in his free time.

    Buy me a coffeeBuy me a coffee