- You are unable to download docker images from the repository.
- You received a network timed out error message.
- This issue is probably due to your Docker DNS Server setting. Switch it from Automatic to Fixed to resolve issue.
If you just installed docker in Windows (in my case, it is Windows 10 Pro), you may encounter the following error message when trying to pull a docker image from docker.io:
C:\VMs\Docker>docker pull hello-world
Using default tag: latest
Pulling repository docker.io/library/hello-world
Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/hello-world/images. You may want to check your internet connection or if you are behind a proxy.
However, when you open up your browser to navigate to the url (https://index.docker.io/v1/repositories/library/hello-world/images) of the image, you found that you have no problems.
This maybe due to an issue with the Network settings of Docker.
Specifically, the problem maybe with the DNS Server setting.
The DNS Server is set to Automatic by default and that DNS server may not be able to find the docker image repository.
To resolve this issue, simply set the DNS Server setting to “Fixed”.
For the IP address of the DNS Server, you can probably accept the default of “22.214.171.124” (which points Google’s DNS server)
After clicking on the “Fixed” radio button, click on the “Apply” button to apply your changes.
This will cause Docker to restart.
After Docker have restarted, you should find that you are able to pull docker images without any issues.
My first blog post for 2016.
This is a reminder blog post.
When your Windows 2003 boot up, you may see another a message like the below:
When you logged into Windows and examine the Event Viewer, you may see an error under System.
When you open up the error, you would see, the following error message:
Start a Windows command prompt and run the following command:
sc config parport start= disabled
Note the space after “start=” in the above command. It is required.
After you ran this command, you should not see the error message prompt on your next Windows bootup.
Note: This solution deviate from the one stated in the reference.
- Error message on a Windows Vista-based or Windows Server 2008-based computer that does not have a parallel port: "The Parallel port driver service failed to start"
This is done by executing the following commands at the command line:
# pkgin update
When executing pkgin_sets, it will show the following screen and prompt you to install each set one by one.
Zhixian’s note: The software installed can be found in /usr/pkg/bin (or /usr/pkg/sbin for system executables).
First prompt installs:
- vim (exception from the above note; executable is found at /usr/bin/vi)
Second prompt install:
Third prompt installs:
- python (the executable for python is named “python2.7” instead of “python” as found in other installations.)
For some reason the tiff library is missing from repository.
Searching and installing the tiff library that got missed out earlier.
A list of screen dumps that I taken while installing Minix3 on VirtualBox.
Dumping the screens first. I intend to annotate them at a later date.
End of installation
This blog post is on my setting up another Ubuntu Server VM.
This time I want a VM that has the common software development applications pre-installed.
As such most of the steps are similar to what I did in a previous blog post.
So on this blog post, I will start from the screen where I can select pre-packaged software.
Although, I was not really sure I really need the DNS server and print server, I thought “Ah well. Might as well.”
So they are included.
First thing to setup is to assign a password for MySql server “root” account.
Note: You may have notice that background color have changed from purple to blue.
This was because I typed the wrong confirmation password when setting the password.
This blog post covers connecting to the openssh server installed on Ubuntu server using MobaXterm.
I want to connect to the openssh server.
For this purpose, I use MobaXterm from Mobatek (http://mobaxterm.mobatek.net/).
This is a terminal application with a few other tools built-in.
It has a professional edition which cost money and a home edition that is free.
For our local development purpose, the free edition is fine.
Alternatively, there’s the putty-series (http://www.putty.org/) of applications.
The remainder of this session assumes you are using MobaXterm.
After you start up MobaXterm, you may see a window like the below.
Click on the Session button on the menu.
This will open the Session Settings dialog.
On the Session Settings dialog, click on the SSH button on the top menu.
Under the Basic SSH settings tab, enter the name of the remote host.
Click the OK button to connect to the server.
After you clicked OK, MobaXterm will start your session on a new tab.
You should see your usual login prompt.
You should be able to login to your account as usual.
File transfer using SFTP
You can transfer files from your Windows machine to your Ubuntu machine using SFTP (Secure-FTP).
One the tools built-in the MobaXterm client is a SFTP client.
Click on the SFTP tab to display the directory and files in the directory.
To transfer files, simple drag and drop the files that you want to transfer in the area showing files in specified directory.
After you have installed your Ubuntu server, you may want to do some initial setup.
Specifically, you may want to add a another account.
Adding user account
Adding users can be done using the command adduser. In the below command-line, I am creating a developer account call ‘developer’.
$ sudo adduser developer
After you have create the user account, it might be useful to add the account to the ‘sudo’ group so that the account can make use of the ‘sudo’ command. To do so,
$ sudo addgroup developer sudo
You can check which groups an account belongs to using the ‘groups’ command:
$ groups developer
This is a blog post that describes my setup of Ubuntu Server 14.04 (Trusty Tahr) on VirtualBox.
I intended to use this server for local software development.
|Selected Software Package
||Needed for remote secure shell sessions
||Linux Apache MySql PHP development stack
||Best open-source database
|Samba file server
|Skipped Software Packages
||Don’t really think I need it
||I will describe this in a later blog post
||Don’t really think I need it
|Tomcat Java Server
||Not sure if I want to use this;
To install nunit on Ubuntu, start a terminal session and execute the following command:
sudo apt-get install nunit nunit-console nunit-gui
After installation has complete, you can run nunit by executing the following command in the terminal session:
for the user-friendly graphical interface or alternatively,
for the nunit console.
I just realise that the mono-complete does not include the xsp4 package.
This package is needed if you intend to debug web applications using MonoDevelop.
sudo apt-get install mono-xsp4
After the installation process has complete, you may see a message stating that you have an incomplete debian.webapp.
To remedy this, install asp.net-examples by running the below command:
sudo apt-get install asp.net-examples