-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33c482b
commit 39e025f
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#Find Ubuntu image | ||
docker search ubuntu | ||
|
||
#Install Ubuntu image | ||
docker pull ubuntu | ||
|
||
#Select image | ||
docker images | ||
|
||
#Create Ubuntu container and port mapping | ||
docker run -it -d --name ubuntu_test -p 8088:80 ubuntu | ||
|
||
#Select container | ||
docker ps | ||
|
||
#Select image | ||
docker images | ||
|
||
#Enter docker container | ||
docker exec -it f8d688f9918f /bin/bash | ||
|
||
#Exit command | ||
exit | ||
|
||
#Stop container | ||
docker stop id | ||
|
||
#Create docker image | ||
docker commit f8d688f9918f ubuntu_test1:1.0 | ||
|
||
#Save docker image | ||
docker save -o ubuntu_test1.tar ubuntu_test1:1.0 |