Giter VIP home page Giter VIP logo

Comments (5)

sanderjo avatar sanderjo commented on July 20, 2024 2

Ah, solved it: In Dockerfile, just add "sudo" to packages that must be installed:

    apt-get install -y git-core subversion build-essential gcc-multilib sudo \

Note "sudo" at the end of the line. Apparantly "sudo" is not installed by default ... ?

from docker-openwrt-buildroot.

noonien avatar noonien commented on July 20, 2024

That's weird. Everything seems fine for me. I'll update the base image, perhaps that will solve your issue.

from docker-openwrt-buildroot.

sanderjo avatar sanderjo commented on July 20, 2024

Weird indeed, but here's the simple proof:

$ sudo docker run -it ubuntu:13.10 /bin/bash
root@3cf7583e6890:/# sudo ls
bash: sudo: command not found
root@3cf7583e6890:/# 


root@3cf7583e6890:/# apt-get install sudo
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  sudo
0 upgraded, 1 newly installed, 0 to remove and 19 not upgraded.
Need to get 388 kB of archives.
After this operation, 1286 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ saucy-updates/main sudo amd64 1.8.6p3-0ubuntu3.1 [388 kB]
Fetched 388 kB in 1s (341 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package sudo.
(Reading database ... 7323 files and directories currently installed.)
Unpacking sudo (from .../sudo_1.8.6p3-0ubuntu3.1_amd64.deb) ...
Setting up sudo (1.8.6p3-0ubuntu3.1) ...
root@3cf7583e6890:/# 

root@3cf7583e6890:/# sudo ls
bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
root@3cf7583e6890:/#

from docker-openwrt-buildroot.

sanderjo avatar sanderjo commented on July 20, 2024

Ubuntu 14.04 has installed 'sudo' installed:

$ sudo docker run -it ubuntu:14.04 /bin/bash
root@66b403926746:/# sudo ls
bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
root@66b403926746:/# 

Is there a reason NOT to switch Ubuntu 14.04?

EDIT: ah, you just switched to 14.04^H^H^H.10. Cool.

from docker-openwrt-buildroot.

noonien avatar noonien commented on July 20, 2024

Do you still experience this issue and #3?

from docker-openwrt-buildroot.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.