Comments (5)
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.
That's weird. Everything seems fine for me. I'll update the base image, perhaps that will solve your issue.
from docker-openwrt-buildroot.
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.
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.
Do you still experience this issue and #3?
from docker-openwrt-buildroot.
Related Issues (11)
- vs. leesah/docker-openwrt-dev ? HOT 1
- Why one RUN? HOT 5
- Error while pulling docker image HOT 3
- gcc-multilib for ARM64 CPU
- version on Docker Hub is outdated HOT 2
- svn: E000113: Unable to connect to a repository at URL 'http://svn.luci.subsignal.org/luci/branches/luci-0.11/contrib/package
- make: "collect2: error: ld returned 1 exit status" HOT 2
- Make error because it tries openssl-1.0.1j.tar.gz (unavailable), instead of available openssl-1.0.1k.tar.gz HOT 4
- Retrieve image? HOT 4
- Why clone OpenWRT inside container? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-openwrt-buildroot.