Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Alan Marsh
docker-tutorial
Commits
84bc0dfc
Commit
84bc0dfc
authored
4 years ago
by
Michael Marsh
Browse files
Options
Downloads
Patches
Plain Diff
installation/configuration
parent
9a0ed542
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+50
-0
50 additions, 0 deletions
README.md
with
50 additions
and
0 deletions
README.md
+
50
−
0
View file @
84bc0dfc
...
...
@@ -14,6 +14,56 @@ the resources given to it by the host, so it provides some (minimal)
level of security. It also means we can start a process from a
known-clean state, so we have repeatability.
Installation
============
The first thing we need to do is install docker. If you're running
Linux, there's a good chance that your package manager already has
docker available (don't confuse it with a KDE package of the same
name!), but for the most up-to-date version, you can download it from
https://docker.com. One slight complication is if you're running Red
Hat Enterprise Linux; Fedora and CentOS are just fine. There's a
special version of docker that works with RHEL, but it doesn't work as
easily. At this point, you can ignore the rest of this section.
If you're running MacOS, then there's a download available from
https://docker.com called Docker Desktop. It installs and runs easily.
At this point, you can ignore the rest of this section.
If you're running Windows, life becomes more complicated. We're going
to restrict ourselves to Docker Desktop under Windows 10 Education
(you can get a license from TerpWare, and all it does is enable
features already present). Can you run docker with the regular home
edition? Yes, but you'll have to run Docker Toolbox, which isn't as
well-integrated, so some things won't work properly.
The next thing you need to do is ensure you're running at least
version 2004, which supports Windows Subsystem for Linux version 2
(WSL 2).
*
Go to https://aka.ms/wslstore and get a WSL Linux distribution. Ubuntu
is a good choice.
*
Install https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
*
In an Admin PowerShell, run the following:
*
`dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart`
*
You
*might*
need to restart at this point.
*
`wsl --set-default-version 2`
*
`wsl --set-version Ubuntu 2`
*
There's a docker service icon at the bottom right (it's a whale) --
right-click on it and select "Settings:
*
Enable WSL 2 as the engine, instead of Hyper-V. This allows docker to
take advantage of the Windows/Linux integration in the OS.
*
Expose the TCP daemon on localhost without TLS.
*
For convenience, I suggest doing the following in the Ubuntu shell:
ln -s "/mnt/c/Users/<your username>" winhome
That will allow you to access your Windows home directory from Ubuntu as
`~/winhome/`
.
You should now be able to run all docker commands from either PowerShell or
the WSL Ubuntu (or other distribution) shell.
Docker Images
=============
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment