You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tbooth@balisaur[tbooth] oswitch bwarwrik/qiime
Sending build context to Docker daemon 5.632 kB
Sending build context to Docker daemon
Step 0 : FROM bwarwrik/qiime
Pulling repository bwarwrik/qiime
INFO[0000] Error: image bwarwrik/qiime:latest not found
tbooth@balisaur[tbooth] oswitch avilella/qiime
Sending build context to Docker daemon 5.632 kB
Sending build context to Docker daemon
Step 0 : FROM avilella/qiime
Pulling repository avilella/qiime
720d5648a8e0: Download complete
511136ea3c5a: Download complete
6170bb7b0ad1: Download complete
9cd978db300e: Download complete
Status: Downloaded newer image for avilella/qiime:latest
---> 720d5648a8e0
Step 1 : COPY _switch /
---> 6719cb6ab38b
Removing intermediate container 8f376f30cc57
Step 2 : COPY wheel /etc/sudoers.d/
---> 6a5cc55aedb6
Removing intermediate container 9f224fc88432
Step 3 : RUN /_switch 1000 1000 tbooth /home/tbooth zsh 2>&1 | tee /tmp/oswitch.log
---> Running in ccf81dd1b38f
Switch-ifying ...
Assuming Ubuntu.
Attempting to activate universe and multiverse repositories.
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libdbus-glib-1-2 python-dbus python-dbus-dev
Suggested packages:
python-dbus-doc python-dbus-dbg
The following NEW packages will be installed:
libdbus-glib-1-2 python-dbus python-dbus-dev software-properties-common
0 upgraded, 4 newly installed, 0 to remove and 60 not upgraded.
Need to get 190 kB of archives.
After this operation, 850 kB of additional disk space will be used.
Err http://archive.ubuntu.com/ubuntu/ precise/main python-dbus-dev all 1.0.0-1ubuntu1
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ precise/main python-dbus amd64 1.0.0-1ubuntu1
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ precise-updates/main software-properties-common all 0.82.7.7
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ precise-security/main libdbus-glib-1-2 amd64 0.98-1ubuntu1.1
Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/d/dbus-glib/libdbus-glib-1-2_0.98-1ubuntu1.1_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/d/dbus-python/python-dbus-dev_1.0.0-1ubuntu1_all.deb Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/d/dbus-python/python-dbus_1.0.0-1ubuntu1_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/software-properties/software-properties-common_0.82.7.7_all.deb Temporary failure resolving 'archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
/_switch: 27: /_switch: apt-add-repository: not found
/_switch: 28: /_switch: apt-add-repository: not found
Oops ... it is Debian. Continuing.
Updating list of packages.
Err http://archive.ubuntu.com precise InRelease
Err http://archive.ubuntu.com precise-updates InRelease
Err http://archive.ubuntu.com precise-security InRelease
Err http://archive.ubuntu.com precise Release.gpg
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com precise-updates Release.gpg
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com precise-security Release.gpg
Temporary failure resolving 'archive.ubuntu.com'
Reading package lists...
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/InRelease
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/InRelease
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-security/Release.gpg Temporary failure resolving 'archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Installing utilities.
Reading package lists...
Building dependency tree...
Reading state information...
less is already the newest version.
The following packages will be upgraded:
sudo
1 upgraded, 0 newly installed, 0 to remove and 59 not upgraded.
Need to get 288 kB of archives.
After this operation, 16.4 kB disk space will be freed.
Err http://archive.ubuntu.com/ubuntu/ precise-updates/main sudo amd64 1.8.3p1-1ubuntu3.4
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ precise-security/main sudo amd64 1.8.3p1-1ubuntu3.4
Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/sudo/sudo_1.8.3p1-1ubuntu3.4_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Setting up locale.
Reading package lists...
Building dependency tree...
Reading state information...
locales is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 60 not upgraded.
Generating locales...
en_US.UTF-8... done
Generation complete.
Installing zsh as requested.
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libcap2
Suggested packages:
zsh-doc
The following NEW packages will be installed:
libcap2 zsh
0 upgraded, 2 newly installed, 0 to remove and 60 not upgraded.
Need to get 4728 kB of archives.
After this operation, 11.7 MB of additional disk space will be used.
Err http://archive.ubuntu.com/ubuntu/ precise/main libcap2 amd64 1:2.22-1ubuntu3
Temporary failure resolving 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ precise/main zsh amd64 4.3.17-1ubuntu1
Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libc/libcap2/libcap2_2.22-1ubuntu3_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/z/zsh/zsh_4.3.17-1ubuntu1_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Creating user tbooth with uid 1000 ...
Done.
Your home directory is .
You can use sudo.
passwd: password expiry information changed.
---> d3c0db8bc293
Removing intermediate container ccf81dd1b38f
Step 4 : ENV LC_ALL en_US.UTF-8
---> Running in a2163e7a8286
---> cb97ef2caaec
Removing intermediate container a2163e7a8286
Step 5 : USER tbooth
---> Running in eaba83a292d1
---> 22b20ce6d795
Removing intermediate container eaba83a292d1
Step 6 : ENTRYPOINT zsh -c
---> Running in 20bc9a2ffc15
---> 22eb5b8c1eec
Removing intermediate container 20bc9a2ffc15
Successfully built 22eb5b8c1eec
exec: "zsh": executable file not found in $PATHFATA[0000] Error response from daemon: Cannot start container 4447e337247de708373ed1a1796a7d7707515573128010663a81d22da8bcf7be: exec: "zsh": executable file not found in $PATH
The text was updated successfully, but these errors were encountered:
tbooth@balisaur[tbooth] env SHELL=/bin/bash oswitch avilella/qiime
exec: "zsh": executable file not found in $PATHFATA[0000] Error response from daemon: Cannot start container 852b2eddfde0af772d46b76e213e24fac47f90386f6ce5ebc2e55e6ac26794e6: exec: "zsh": executable file not found in $PATH
Only if you delete the bells-and-whistles image oswitch created and run again. Should this be the default behaviour? Probably yes. The current behaviour is a leftover from when I switched to dynamically switchifying images instead of having all images inherit from an oswitch base image. Back then oswitch used su -l to change user in the container instead of using docker's USER directive. And so it was helpful to set login shell for the user created inside the container (people don't switch shells often). But with the new approach, the shell to execute is passed to the docker image by oswitch. So SHELL=/bin/bash should override.
Consider using docker to get into the image to debug things while I fix this issue? The image oswitch created will be listed in docker images as "oswitch_*_qiime".
Still looking into this, and whether it is really a problem with my chosen container, but here is the initial error:
That's OK, so:
The text was updated successfully, but these errors were encountered: