Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Docker
(edit)
Revision as of 19:52, 26 May 2017
248 bytes added
,
19:52, 26 May 2017
→Create & Publish image
Line 28:
Line 28:
== Create & Publish image ==
== Create & Publish image ==
−
mkdir
myimage
+
mkdir
rpi_python
−
nano Dockerfile
+
nano
rpi_python/
Dockerfile
Docekerfile
Docekerfile
Line 50:
Line 50:
# Define default command
# Define default command
CMD ["bash"]</nowiki>
CMD ["bash"]</nowiki>
+
+
docker build -t rpi_python:0.0.1
+
docker build -t rpi_python:0.0.1 -t rpi_python:latest .
+
# List images
+
docker images
+
# Test image
+
docker run -rm -it rpi_python:0.0.1
+
# Login
+
docker login
+
docker push jmkhael/rpi_python:0.0.1
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version