Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Docker
(edit)
Revision as of 19:45, 26 May 2017
472 bytes added
,
19:45, 26 May 2017
no edit summary
Line 26:
Line 26:
Start/run with a different entry point:
Start/run with a different entry point:
docker run -ti --entrypoint=sh user/test_image
docker run -ti --entrypoint=sh user/test_image
+
+
== Create & Publish image ==
+
mkdir myimage
+
nano Dockerfile
+
+
Docekerfile
+
<nowiki># Pull base image
+
FROM resin/rpi-raspbian:wheezy
+
MAINTAINER Dieter Reuter <dieter@hypriot.com>
+
+
# Install dependencies
+
RUN apt-get update && apt-get install -y \
+
python \
+
python-dev \
+
python-pip \
+
python-virtualenv \
+
--no-install-recommends && \
+
rm -rf /var/lib/apt/lists/*
+
+
# Define working directory
+
WORKDIR /data
+
+
# Define default command
+
CMD ["bash"]</nowiki>
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