element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Avnet SmartEdge IoT Gateway - Docker installation
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 5 replies
  • Subscribers 666 subscribers
  • Views 1527 views
  • Users 0 members are here
  • smartedge industrial iot gateway avnet
  • avnet
  • raspberry_pi
  • iot system
  • raspberrypi
  • docker
Related

Avnet SmartEdge IoT Gateway - Docker installation

ayman.jehad
ayman.jehad over 4 years ago

Has anyone installed Docker on this gateway?

I'm trying to configure the Losant edge-agent, but not able to install the Docker.

I'm not sure if it's compatible with the Raspbian Stretch or Buster.

 

I tried building the gateway with both images 2019 & 2020 without luck.

 

This is what I'm getting:

 

avnet@raspberrypi:~/Downloads $ sudo apt-get install docker.ce

Reading package lists... Done

Building dependency tree

Reading state information... Done

Note, selecting 'docker-ce' for regex 'docker.ce'

Note, selecting 'docker-ce-cli' for regex 'docker.ce'

The following additional packages will be installed:

  pigz

The following packages will be REMOVED:

  docker.io

The following NEW packages will be installed:

  docker-ce docker-ce-cli pigz

0 upgraded, 3 newly installed, 1 to remove and 7 not upgraded.

Need to get 50.0 kB/47.5 MB of archives.

After this operation, 182 MB of additional disk space will be used.

Do you want to continue? [Y/n] y

Get:1 http://mirror.nl.leaseweb.net/raspbian/raspbian stretch/main armhf pigz armhf 2.3.4-1 [50.0 kB]

Fetched 50.0 kB in 1s (31.6 kB/s)

(Reading database ... 107882 files and directories currently installed.)

Removing docker.io (1.8.3~ds1-2) ...

Selecting previously unselected package pigz.

(Reading database ... 107791 files and directories currently installed.)

Preparing to unpack .../pigz_2.3.4-1_armhf.deb ...

Unpacking pigz (2.3.4-1) ...

Selecting previously unselected package docker-ce-cli.

Preparing to unpack .../docker-ce-cli_5%3a19.03.13~3-0~raspbian-stretch_armhf.deb ...

Unpacking docker-ce-cli (5:19.03.13~3-0~raspbian-stretch) ...

Selecting previously unselected package docker-ce.

Preparing to unpack .../docker-ce_5%3a19.03.13~3-0~raspbian-stretch_armhf.deb ...

Unpacking docker-ce (5:19.03.13~3-0~raspbian-stretch) ...

Processing triggers for systemd (232-25+deb9u12) ...

Processing triggers for man-db (2.7.6.1-2) ...

Setting up docker-ce-cli (5:19.03.13~3-0~raspbian-stretch) ...

Setting up pigz (2.3.4-1) ...

Setting up docker-ce (5:19.03.13~3-0~raspbian-stretch) ...

Installing new version of config file /etc/default/docker ...

Installing new version of config file /etc/init.d/docker ...

Installing new version of config file /etc/init/docker.conf ...

Job for docker.service failed because the control process exited with error code.

See "systemctl status docker.service" and "journalctl -xe" for details.

invoke-rc.d: initscript docker, action "start" failed.

● docker.service - Docker Application Container Engine

   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)

   Active: activating (auto-restart) (Result: exit-code) since Mon 2020-10-12 23:31:26 BST; 43ms ago

     Docs: https://docs.docker.com

  Process: 16349 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)

Main PID: 16349 (code=exited, status=1/FAILURE)

      CPU: 405ms

 

 

Oct 12 23:31:26 raspberrypi systemd[1]: docker.service: Unit entered failed state.

Oct 12 23:31:26 raspberrypi systemd[1]: docker.service: Failed with result 'exit-code'.

dpkg: error processing package docker-ce (--configure):

subprocess installed post-installation script returned error exit status 1

Processing triggers for systemd (232-25+deb9u12) ...

Errors were encountered while processing:

docker-ce

E: Sub-process /usr/bin/dpkg returned an error code (1)

  • Sign in to reply
  • Cancel
  • ayman.jehad
    ayman.jehad over 4 years ago

    Update.

    For the Avnet SmartEdge IoT Gateway which running on the Raspbian GNU/Linux 9.13 (stretch), there is not need to install docker, you need to enable it on the systemctl  using the following commands:

     

    1. systemctl : $ sudo systemctl start docker.
    2. service : $ sudo service docker start
    3. run the command: “sudo docker run hello-world”
    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • andynd
    andynd over 4 years ago in reply to ayman.jehad

    Hi Ayman,

     

    I checked the 2019 and 2020 images but I didn't find the docker.socket or docker.service in these image to start/enable. Can I know what is your image you are using? I used below image link.

    https://avtinc.sharepoint.com/sites/Smartedge-iiot-gateway/Shared%20Documents/Forms/AllItems.aspx?id=%2Fsites%2FSmartedg…

     

    Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 4 years ago in reply to andynd

    andynd  wrote:

     

    Hi Ayman,

     

    I checked the 2019 and 2020 images but I didn't find the docker.socket or docker.service in these image to start/enable. Can I know what is your image you are using? I used below image link.

    https://avtinc.sharepoint.com/sites/Smartedge-iiot-gateway/Shared%20Documents/Forms/AllItems.aspx?id=%2Fsites%2FSmartedg…

     

    Thanks.

    I'm running the 2020 image too, and don't see docker.

    image

    ayman.jehad, is it possible that you had to install docker as prerequisite for some other software package you are using?

    It does not seem to be there by default.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • tdp1985
    tdp1985 over 4 years ago in reply to Jan Cumps

    Hello,

    Have you foud a way to inbstall docker on the Avnet SmartEdge IoT Gateway. I have also some errors :

     

    root@avnetiot:/home/avnet# systemctl start docker

    Failed to start docker.service: Unit docker.service not found.

    root@avnetiot:/home/avnet# apt-get install docker-ce-cli docker-ce

    Reading package lists... Done

    Building dependency tree

    Reading state information... Done

    The following additional packages will be installed:

      cgroupfs-mount containerd.io pigz

    The following packages will be REMOVED:

      moby-engine

    The following NEW packages will be installed:

      cgroupfs-mount containerd.io docker-ce docker-ce-cli pigz

    0 upgraded, 5 newly installed, 1 to remove and 7 not upgraded.

    1 not fully installed or removed.

    Need to get 0 B/68.0 MB of archives.

    After this operation, 182 MB of additional disk space will be used.

    Do you want to continue? [Y/n] y

    (Reading database ... 76784 files and directories currently installed.)

    Removing moby-engine (3.0.5) ...

    Failed to stop docker.service: Unit docker.service not loaded.

    Failed to stop docker.socket: Unit docker.socket not loaded.

    dpkg: error processing package moby-engine (--remove):

    subprocess installed pre-removal script returned error exit status 5

    postinst called with unknown argument `abort-remove'

    dpkg: error while cleaning up:

    subprocess installed post-installation script returned error exit status 1

    Errors were encountered while processing:

    moby-engine

    E: Sub-process /usr/bin/dpkg returned an error code (1)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • tdp1985
    tdp1985 over 4 years ago in reply to tdp1985

    Version :

    root@avnetiot:/home/avnet# lsb_release -a

    No LSB modules are available.

    Distributor ID: Raspbian

    Description:    Raspbian GNU/Linux 9.13 (stretch)

    Release:        9.13

    Codename:       stretch

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube